develooper Front page | perl.perl6.language.mlc | Postings from August 2000

Re: why not just use C /* ... */ ?

From:
JVromans
Date:
August 23, 2000 01:23
Subject:
Re: why not just use C /* ... */ ?
Message ID:
m2d7j05rl6.fsf@phoenix.squirrel.nl
"Michael Mathews" <mmathews@oxygen.com> writes:

> Nesting is a problem you don't really want to solve, in my opinion. The
> world gets real weird, real fast when you can nest and/or overlap comments.
> Not worth the trouble.

If the prime argument for mlc is commenting out large blocks of code
then you'd better solve the nesting problem -- and do it well.
Especially when commenting out large blocks of code one can easily get
into the situation that a part of a block is commented out, and then
the whole block gets commented out. We do not want the inner comment
to terminate the outer one, do we?

In any case, commenting out large blocks (more than one visual page)
is highly confusing unless you can clearly see what is commented out,
for example, by prefixing every line with a '#' or so.

-- Johan





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About