Comment by flohofwoe
8 hours ago
I rarely use pre-increment tbh, but post-increment all the time for array indices (since typically the array should be indexed with the value before the increment happens).
If the pre- or post-increment behaviour isn't actually needed, I prefer `x += 1` though.
No comments yet
Contribute on Hacker News ↗