Reply to post:

Linus Torvalds in sweary rant about punctuation in kernel comments

Jeffrey Nonken

For comments on lines of code, I prefer to use the double slash.

For block comments I generally have a slash followed by a line of asterisks, followed by one or more lines of text (no asterisks), followed by a line of asterisks ending in a slash. Separates the block visually, nice symmetry, easy to edit.

I'm sure Linus would find other reasons to hate me, if not that.

We should all remember Nathan Hale's famous line, "I only regret that I have but one asterisk for my nation."

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon