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

> Imagine leaving no space between `//` and a comment, I would never. Never!

I usually do this when I out-comment single lines of code. That way I can grep for `//[^ ]` to find lines that are out-commented code, as opposed to being actual comments for humans.

It also helps the readability in the case where a comment for humans is followed by out-commented code, to distinguish where the comment for human ends.



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

Search: