Hacker News new | ask | show | jobs
by mikepurvis 974 days 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.
1 comments

That'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.