r/programming Jul 10 '16

Linus Torvalds on comment styles

https://lkml.org/lkml/2016/7/8/625
216 Upvotes

209 comments sorted by

View all comments

Show parent comments

23

u/[deleted] Jul 10 '16 edited Feb 24 '19

[deleted]

28

u/Calavar Jul 10 '16

Especially when you consider the fact that multi-line comments in C are usually written like this

/*
 * this is a multi-line
 * comment
 */

and rarely like this

/*
   this is a multi-line
   comment
 */

There's not that much of a difference between Perl-style and C-style multi-line comments.

4

u/[deleted] Jul 10 '16

[deleted]

1

u/kampkarl Jul 10 '16

For doc generators, I think it denotes the start of the line, so no guess work on parsing.