Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: