Fw: RFC: multiline comments

[email protected] ("Michael Mathews") Thu, 3 Aug 2000 14:24:10 -0400
Newsgroups perl.perl6.language.mlc
Organization Oxygen Media, Inc.
Message-ID <[email protected]>
[forwarded from the general language list, posted by Martyn J. Pearce
<[email protected]>]

> John Porter writes:
> |   qc( here's some text which will evaluate to "silent undef". );
> |
> | Could be very much like qw(), in the sense that
> |
> |   % perl -w
> |   qc{
> |       once upon a time
> |       # now for the clincher
> |       happily ever after.
> |   };
> |   Possible attempt to put comments in qc() at - line 5.
> |
> | One could use qw() or q() for this right now; but those result in
> | a value, which under some circumstances causes a warning issuance.
>
> Disclaimer:  am not in any way agreeing that there is a need for
> multiline comments : ---------------
>
> The above has one particular problem that I can see: it relies upon the
> correct nesting of the delimiter.  C style */ end delimiters are rarely
> if ever seen in the code, so work reasonably well (although I still see
> people falling over nested comments); the above, with a likely
> single-char delimiter, be it ) } or even !, would be all too easy to
> fall foul of, and spotting the error would be tedious; esp. when the
> false ending was hidden in, say, a string.
>
> --
> See, the stars are shining bright
> Everything's all right tonight
> -- (Martin L. Gore, Never Let Me Down Again)