[erlang-questions] Multi-line comments in Erlang

Bengt Kleberg bengt.kleberg@REDACTED
Wed Dec 8 16:27:38 CET 2010


Greetings,

For commenting out code, it is possible to use:

-ifdef(never_defined).
...code
-endif().


bengt

On Wed, 2010-12-08 at 15:39 +0100, David Mercer wrote:
> On Tuesday, December 07, 2010, Richard O'Keefe wrote:
> 
> > Nesting comments are one of those clever ideas
> > that turn out to be really dumb, because they don't actually work.
> 
> I'll bite, mainly because I've sometimes thought nesting comments would be
> helpful, for instance, when commenting out large blocks of code, but it is
> rare that I get to work with a language that supports them.  Since you're
> almost always right about such things, why do you say that they don't
> actually work?
> 
> Cheers,
> 
> David
> 
> 
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
> 



More information about the erlang-questions mailing list