[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Re: string formatting notation
2017-12-22 9:47 GMT-05:00 <stefaan.himpe@xxxxxxxxx>:
> 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/
Sorry my python is so rusty, but why would % require you to rewrite
sentences in % order? If we need to do this in python they're doing %
wrong in the first place. I've never heard of this problem either in C
or in Perl (I'm aware that $ is technically not standardize, but no
modern open source program would work without $).
String interpolation (and raw string literals) came from Perl. When I
write Perl I actually go back to % because interpolated strings can
quickly become completely unreadable.
--
Ambrose Li // http://o.gniw.ca / http://gniw.ca
If you saw this on CE-L: You do not need my permission to quote
me, only proper attribution. Always cite your sources, even if
you have to anonymize and/or cite it as "personal communication".
_______________________________________________
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/