▲ | simonw 9 days ago | |||||||||||||||||||||||||
I'm excited about this. I really like how JavaScript's tagged template literals https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... can help handle things like automatic HTML escaping or SQL parameterization, it looks like these will bring the same capability to Python. | ||||||||||||||||||||||||||
▲ | davepeck 9 days ago | parent | next [-] | |||||||||||||||||||||||||
Yes! PEP 750 landed exactly there: as a pythonic parallel to JavaScript's tagged template strings. I'm hopeful that the tooling ecosystem will catch up soon so we see syntax coloring, formatting of specific t-string content types, etc. in the future. | ||||||||||||||||||||||||||
▲ | its-summertime 9 days ago | parent | prev [-] | |||||||||||||||||||||||||
I just wish it didn't get Pythonified in the process, e.g. needing to be a function call because backtick is hard to type on some keyboards, nearly having a completely separate concept of evaluating the arguments, etc. x`` vs x(t'') is a 2x blowup in terms of line-noise at worst. | ||||||||||||||||||||||||||
|