5 ms·
Here are some reasons that Python removed them: http://stackoverflow.com/questions/1485841/behaviour-of-increment-and-decrement-operators-in-python http://stack
by Tempest1981 10y ago
Here are some reasons that Python removed them:
http://stackoverflow.com/questions/1485841/behaviour-of-increment-and-decrement-operators-in-python http://stackoverflow.com/questions/1485841/behaviour-of-incr...
Edit: a nice write up by Chris Lattner:
https://github.com/apple/swift-evolution/blob/master/proposals/0004-remove-pre-post-inc-decrement.md https://github.com/apple/swift-evolution/blob/master/proposa...
- dap 10y agoIt's very unfortunate that attempting to use preincrement and postincrement operators in Python results not in a syntax error, but in code that silently does something very unexpected.