3 ms·
Sometimes it's easier to define some vocabulary and then use it. Like defining push and pop on a stack vs stack[++ix] = blah and blah = stack[ix--]. And avoid
by Tyr42 2y ago
Sometimes it's easier to define some vocabulary and then use it. Like defining push and pop on a stack vs stack[++ix] = blah and blah = stack[ix--].
And avoids needing to think about it being prefix or postfix after you don't that one time.
But at other times it's insufferable, when the abstraction is leaky and unintuitive.