4 ms·
I feel like having all the options you'll want available is the best practice. I feel like python people went from liking long concatenations with arguments bei
by noobermin 4y ago
I feel like having all the options you'll want available is the best practice. I feel like python people went from liking long concatenations with arguments being infix with python2 print statements to str.format in early python3 and friends to liking long concatenations again with fstrings all again. And now we get the joy of having long conditional statements in the middle of a string, rather than it being assigned to a variable before the string, as god intended.
Really, the right answer is having options for string interpolation (as long as they are safe (that is not perl)) and let programmers choose because string interpolation is just another one of those bikeshedding things that developers change their opinions on as the seasons change.
- reikonomusha 4y agoBecause Common Lisp allows libraries to extend the character syntax, interpolated strings are just a library away with CL-INTERPOL [1]. So (let ((x 5)) #?"there are ${x} hackers") works as expected. [1]: http://edicl.github.io/cl-interpol/ http://edicl.github.io/cl-interpol/