I never understood why incrementing a pointer while doing another operation, such as a comparison, is considered good style in C, TBQH.
I think the go example is much more readable.
I think the go example is much more readable.
So the (for example) strcmp "while (s++ == d++);" made sense as efficient code, because the pointer access and the post increment effectively compiled down to almost a single instruction.
https://en.wikipedia.org/wiki/PDP-11_architecture#General_re...