[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] string formatting notation



Hey all,

Formatting a string in SuperCollider is currently done (standard-wise) with the `.format` method on String. I was wondering what the community interest would be like for a Python 2 style shorter notation:

Old:
"%: stopped".format(thisProcess)
"%: % is greater than %".format(thisProcess, 3, 2)

New:
"%: stopped" % thisProcess
"%: % is greater than %" % [thisProcess, 3, 2]

Thoughts? I definitely get sick of having to type .format.

Regards,
Brian