Astronouth7303
18-01-2004, 21:15
Question: Why doesn't anyone use single-line comments?
the /* */ doesn't nest.
Like:
//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.
the /* */ doesn't nest.
Like:
//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.