Menu

#4 Do not use // for comments

open
nobody
None
5
2003-03-28
2003-03-28
Devin Crumb
No

Not all compilers accept // for comments. This form of
comment was added for C++. When cross compiling for
other platforms (such as xscale), the compiler may
object and spit out a lot of errors which are hard to figure
out the root cause when the cause is simple the //
comment.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB