On Fri, Jun 11, 2021 at 2:37 AM Thomas Güttler <info@thomas-guettler.de> wrote:
If you don't create HTML with Python daily, then you might not feel the pain.
If you create many HTML strings daily, then you will be typing `foo=foo,
bar=bar` (to pass the variables into the template) over and over again. My goal is to have a super reduced syntax, so that developers need only a few characters to create save (properly escaped) html with Python.
This is exactly why I oppose this. I, like many, many other developers, simply do not do that. Like basically not ever. In the very rare cases I do, f-strings are more than enough. This is trying to turn Python into PHP, a language dedicated to HTML processing. We simply do not need dedicated syntax that is ONLY relevant to making HTML strings, saving a small number of characters for that one single task. ... and no, there isn't any other non-fanciful usage. It is specifically harmful to performance in SQL queries, so is an anti-pattern. Maybe, conceivably, once in a blue moon, someone will come across some other domain where the new syntax could be useful (LaTeX templating?), but far, far, less than to make it worth changing the language and imposing the burden on 10s or 100s of millions of people who use Python. -- The dead increasingly dominate and strangle both the living and the not-yet born. Vampiric capital and undead corporate persons abuse the lives and control the thoughts of homo faber. Ideas, once born, become abortifacients against new conceptions.