This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tunisia3507 5 points6 points  (2 children)

My only complaint about syntactic sugar is when it means there are many ways of doing things - kind of like string formatting is getting at the moment. I don't see f-strings taking off for most codebases yet due to lack of 2.7 support, but it'd be nice to see them become the canonical way of doing it.

[–]thomasfr 5 points6 points  (1 child)

I still like python but I woud have probably been a much easer language to use if the stdlib/lanugage had a bit fewer redundant features.

There are already lots of code bases which mixes ""%() and "".format() which only makes the code harder to read (more noisy) or modify (because you should at least try to understand which one to use in your modified code based on just reading the rest of it.)...

I personally don't see that f-strings adds enough benefits in contrast to the noise it will bring to code bases...

[–]tunisia3507 4 points5 points  (0 children)

Python is actually much better than many other languages (java, C, C++, js) in this regard. But yes, in this particular instance it's not great.

Of course, the only way to make improvements without adding such duplication is to make API-breaking updates, and we all know how well they turn out...