Sorry to be harsh, but here's another example of what i think is almost unbelievably shoddy language design, and is a huge warning sign for me that Python should be dumped in favor of a new language at the earliest possible time:
http://www.velocityr...rator-in-python.htmlThe use of ++variable and variable++ is a very common way of incrementing and decrementing variables, from the days of C and C++ and it can be found in Java and many other languages.
Now.. it's completely fine that Python not implement this -- I am all in favor of eliminating redundant ways to write expressions. I have no complaint about python not supporting the increment operator.
However, what is totally insanely stupid is to design a modern language where the ++variable syntax is completely legal, and does nothing.
That is a decision absolutely guaranteed to cause problems and i'd be extremely surprised if there wasn't production code with such errors.
It just boggles my mind that someone could design a modern programming language and come up with such a poor design choice.
It's almost as if one of the goals of Python is to make it as easy as possible to write incorrect code that doesn't trigger any obvious errors. This is not the way languages should be designed.
[In the interest of full disclosure, i should say that i am a native C/C++ coder, and C has it's own share of such things, for example in making this kind of conditional legal but misleading "if (a=5) ..", which was one of the great blunders of language design. Haven't language designers learned not to do this by now?]