brianlheim wrote
> 1. Do you agree string formatting and/or string interpolation could be
> done
> better in SC?
> 2. What are some ways we could make it better that would be less harmful
> than the % approach?
For me personally, the % approach feels like setting a step back in
readability from .format. Note that also python added .format after they had
% for a long time (why? because % is less flexible:
https://www.python.org/dev/peps/pep-3101/#rationale ).
More recently python added literal string interpolation (also known as
"f-strings") that I find more convenient to use because they don't require
me to rewrite sentences "in % word order" % ["garbled"]
https://www.python.org/dev/peps/pep-0498/
Actually there are other things in SCLang that annoy me a lot more than
string interpolation, but I won't hijack the topic :)
--
Sent from: http://new-supercollider-mailing-lists-forums-use- these.2681727.n2.nabble.com/ SuperCollider-Users-New-Use- this-f2676391.html
_______________________________________________
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/