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

Re: [sc-users] string formatting notation



How will you differentiate with modulo?

/*
Josh Parmenter
www.realizedsound.net/josh
*/

> On Dec 21, 2017, at 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.
> 
> Regards,
> Brian


_______________________________________________
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/