2 ms·
On the other hand, for those of us who agree with the GP on this, one way around the pitfall is to have your project's style guide ban multiple declarations on
by mikepurvis 3y ago
On the other hand, for those of us who agree with the GP on this, one way around the pitfall is to have your project's style guide ban multiple declarations on a single line, or at least ban them for non-trivial variables— so `int x, y, z;` is permitted, but nothing more than that.
- kazinator 3y agoThat's fine if it isn't used as a pretext for writing nonsense like char* p; which should likewise be banned in the same coding style document.