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

Re: [sc-users] string formatting notation



On 2017-12-21 15:47, brianlheim@xxxxxxxxx wrote:
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.

hi brian,

i support this.

with apologies for hijacking the thread, i also support letting people type 3.db instead of 3.dbamp :)


nathan

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/