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

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

Thread Previous | Thread Next
August 23, 2000 01:23
Re: why not just use C /* ... */ ?
Message ID:
"Michael Mathews" <> 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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About