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

Re: Inline comments. WAS:Re: Recording what we decided *not* to do, and why

Thread Previous | Thread Next
From:
Michael Mathews
Date:
August 7, 2000 14:31
Subject:
Re: Inline comments. WAS:Re: Recording what we decided *not* to do, and why
Message ID:
01b401c000b6$fac55c60$af0c0a0a@ny.oxygen.com
Glenn Linderman said:
> The "#<<token" is big enough it won't be found by accident, but too big
for
> in-line comments.

Agreed.

> The #< or #* is small enough for in-line comments, but
> could have been used in single line comment days, so it better not
> accidentally comment out a large block of code (there may be a ># or *#
> somewhere later, so you'd get no warning).

Oh!! I see what you mean now but I am a little leery about having now 3
different ways of commenting. Also I don't see why anyone couldn't use the
Linderman Style Comments as a block. It has the  feature of distinct opening
and closing delimiters and, and unlike qc's braces I can't think of any
example where #* or *# would appear unquoted in regular code (no more likely
than finding */ in Java or C++ code). Why not use it as a more general
comment-with-explicit-opening-and-closing?

Still there is the problem of what to do about single line comments that
start with "#*", but I would suggest that any unmatched #* be treated as a
single-line comment. Maybe give a warning under Strict.




Thread Previous | Thread Next


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