3 ms·
Interesting suggestion. We added f-strings because we already had s-strings (pass trough to SQL) and r-strings (for raw multi-line text). And would you rather
by aerzen 4y ago
Interesting suggestion. We added f-strings because we already had s-strings (pass trough to SQL) and r-strings (for raw multi-line text).
And would you rather see "My {name}" or "My ${name}"? I personally dislike the $ prefix for all variables and interpolations...
- psychoslave 4y agoLanguages like Perl, Ruby and more offer plethora of additional ways to encode interpolated strings. I especially love the squiggly heredoc for multi line quotations https://infinum.com/blog/multiline-strings-ruby-2-3-0-the-squiggly-heredoc/ https://infinum.com/blog/multiline-strings-ruby-2-3-0-the-sq...
- Kinrany 4y agoChoose backticks as the quote style for interpolation to attract Markdown fans and confuse the hell out of MySQL users :D
- digisign 4y agoThe first one, the $ is redundant if braces required. Multi-line could be triple quoted. SQL, that one I'm not so sure.