I've always laughed to myself when I've looked back at my VB6 days and thought, "What modern language doesn't allow incrementing with double plus signs?":
number++
To my surprise, I can't find anything about this in the Python docs. Must I really subject myself to number = number + 1
? Don't people use the ++
/ --
notation?
a[i] = i++;
where the order of evaluation in C++ is undefined.i++
is less to write so less to read. Less to read means brain can focus more on the big picture.