[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] Re: string formatting notation
I won't do a point-by-point now (maybe later), but it just occurred to me
that you could do a proof of concept now, with no changes to the lexer,
using the preprocessor. That is, change the code string
f"a = {{a}}"
into
"a = %".format(a)
... and evaluate the latter normally. These aren't especially hard string
manipulations.
It wouldn't be optimal for performance, I guess, but it would give skeptical
users such as myself a chance to try it and see if maybe we get hooked.
FWIW I don't find f"" objectionable as a syntax.
Perhaps more later.
hjh
--
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/