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

[email protected] ("Michael Mathews") Mon, 7 Aug 2000 17:27:33 -0400
Newsgroups perl.perl6.language.mlc
Organization Oxygen Media, Inc.
Message-ID <[email protected]>
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.