[antlr-interest] Re: nested comments

Martin Probst mail at martin-probst.com
Thu Jul 7 00:24:36 PDT 2005


Hi,

> the right things to do is NOT to comment /* */ the code
> but remove it with: #if 0 #endif, which can nest!

I heavily doubt that - the preprocessor is evil anyways, and also it
might get really hard to read (maybe depending on your IDE, I haven't
used one yet that highlighted such sections as comments). For the sake
of readability you should probably use //, as that can nest too
(although it's a pain if you don't have a proper IDE).

Regards,
Martin



More information about the antlr-interest mailing list