Message361168
> This is not a bug
No one said it's a bug. It's a defect.
> This has been part of Python since version 1
There are many things that was part of Python 1 that was removed.
> `++` should never be an operator in the future, precisely because it already has a meaning today
This is not a "meaning". `++` means nothing. Indeed
>>> 1++
File "<stdin>", line 1
1++
^
SyntaxError: invalid syntax
> The first expression is not "unreadable". The fact that you were able to read it and diagnose it [...]
The fact I understood it it's because I'm a programmer with more than 10 years of experience, mainly in Python. And I discovered this defect by acccident, because I wanted to write `a += b` and instead I wrote `a ++ b`. And when happened, I didn't realized why it didn't raised a SyntaxError or, at least, a SyntaxWarning. I had to take some minutes to realize the problem.
So, in my "humble" opinion, it's *highly* unreadable and surprising. |
|
Date |
User |
Action |
Args |
2020-02-01 14:56:43 | Marco Sulla | set | recipients:
+ Marco Sulla, steven.daprano |
2020-02-01 14:56:43 | Marco Sulla | set | messageid: <1580569003.41.0.582109148146.issue39516@roundup.psfhosted.org> |
2020-02-01 14:56:43 | Marco Sulla | link | issue39516 messages |
2020-02-01 14:56:43 | Marco Sulla | create | |
|