2 ms·
In Go, where they're a statement, they're fine. But as an expression, but stuff can happen. In non-contrived, real-world, historical examples.
by SamReidHughes 11y ago
In Go, where they're a statement, they're fine. But as an expression, but stuff can happen. In non-contrived, real-world, historical examples.
- Gibbon1 11y agoWas just thinking in moldy old c code the two places to use ++ or -- was when either incrementing pointers or indexes. The other is ++ and -- also map directly to old school assembly language instructions. Helpful when writing the back end of old school compilers. Probably doesn't make much sense in a language with foreach() or dictionaries, etc.