
Originally Posted by
khh
Yeah, but it also means you'll spend so much more time when navigating the document using the keyboard :p
But if it's not your fault...
Not really, most IDEs are very smart now-adays. Unless you are using vi or something, its not a problem.
Actually C99 supports // comments. But the reason I like them is because they're the preferred C++ comments, and because if you exclusively use those in your code, commenting out larger portions while debugging is super-easy.
I know it was added, but its rarely used. And are you sure about that?
Code:
void func(void){
blah blah
blah
/*
some comment
*/
blah blah blah
}
Try to comment out everything from blah to "blah blah blah"
Most people use preprocessor to comment out large blocks of code.
Code:
void func(void){
blah blah
#ifdef commentingout
blah
/*
some comment
*/
blah blah blah
#endif
}
And Doxygen REQUIRES /* */ comments.
Bookmarks