Delimited Comments
You might have expected multiline comments here, but the more significant distinguishing factor between different commenting styles is how a comment is terminated. For single-line comments, this means the comment runs until the end of the line. For delimited comments, a special character sequence is used to indicate the end of a comment.
Delimited comments are precisely that: They start with a /* sequence and end when the first */ sequence is encountered. They’re especially useful for longer comments, eliminating the tedious repetition of //. In addition, you’ll find them often used to provide a heading in source files, containing information about the file’s reason for existence, its author, copyright information, and so on: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access