whython
whython copied to clipboard
Unary ++ operator
An expression x++ would be equivalent to (x := x + 1).
- It would have to be postfix only, to prevent ambiguity with
+(+(x)) - For maximum inconsistency with C, it should return the postincremented value
Cool, but gonna be very hard to do without rewriting the parser. (afaik) Python has no postfix operators normally.
Also, how are you gonna distinguish it from a+ +b?