What would be the purpose of a nested comment? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What would be the purpose of a nested comment?

18th Mar 2016, 11:20 AM
Dave Irwin
Dave Irwin - avatar
2 Answers
+ 3
functions can use many lines, and have many parts. to help the reader understand portions of a larger function block, one could use "nested" comments. This is polite for programs that others may have to read/debug.
13th Jun 2016, 10:54 PM
jud
jud - avatar
- 1
Nested comments... Single line comment inside a multi line comment... #wat Before wonder a little bit, I realized that some people could have doubts if would be a problem to comment some lines of code (to disable it temporarily) if these lines have some single line comment inside... This is the only way I can see some worry about nesting comments...
20th Jan 2016, 11:31 PM
Maxwell de Assis Soares
Maxwell de Assis Soares - avatar