Am Do., 10. Juni 2021 um 14:42 Uhr schrieb Rob Cliffe via Python-ideas <
[email protected]>:

> I am concerned that we have too many string formatting methods:
>     % formatting
>     .format()
>     f-strings
>     string templates
> (are there others I've missed?).
> And now we have another proposed one.
> It's all getting a bit much.  And IMO a turnoff for people learning Python
> (which one should I use, and why?).
> Best wishes
> Rob Cliffe
>

I can feel with you. There are some new things in Python which make it
harder to learn. I personally
don't see a need for the walrus operator.

But on the other hand you can't compare Template Literals with normal
string handling.

This really helps developers to avoid cross-site-scripting attacks by
enabling a secure
escaping of all strings which are not explicitly marked as safe.

 Template Literals only make sense if you want to escape values like in
HTML, XML or SQL templates.

Regards,
  Thomas
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/EYO6IZIJXVJZLZ5CVBVZR2PE574Y6Z4G/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to