Why nested comments not allowed?

Rich Walters raw at math.arizona.edu
Thu Feb 15 14:05:58 AEST 1990


In article <236100027 at prism> ly at prism.TMC.COM writes:
>
>	I'm just curious to know why nested comments are not allowed in many 
>	languages.

Nested comments are not supported because it is difficult to tell where the
nesting ends.  Have you ever written a paren checker in C? (in any language?)

Reason 2) Why waste the computing power??  After all, it's only a comment!!



More information about the Comp.lang.c mailing list