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
Michael Mathews
August 7, 2000 14:31
Re: Inline comments. WAS:Re: Recording what we decided *not* to do, and why
Message ID:
Glenn Linderman said:
> The "#<<token" is big enough it won't be found by accident, but too big
> in-line comments.


> 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

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About