Thread: Comments
View Single Post
  #1   Spotlight this post!  
Unread 18-01-2004, 21:15
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Lightbulb Comments

Question: Why doesn't anyone use single-line comments?

the /* */ doesn't nest.

Like:
Code:
//This is a one line Comment.

/* Commented_Out_Code();
 /* this is a multi-line
     Comment in Code */
 This_Code_Still_Executes(); */

/* Commented_Out_Code();
 // this is a multi-line
 // comment in code
 // split into single-line
 // comments
 This_Code_Dont_Execute(); // :ahh:  */
The reason I say this is that you can use /* */ for commenting out and debugging.

Isn't it good coding practice to do this anyway?

Plus, It isn't in the default code, Anywhere.