RFC: multiline comments

[email protected] ("Michael Mathews") Thu, 3 Aug 2000 13:41:24 -0400
Newsgroups perl.perl6.language.mlc
Organization Oxygen Media, Inc.
Message-ID <[email protected]>
Glenn Linderman pointed out:
I think you missed something in reading my proposal, perhaps you thought
my #<<
and #< syntaxes were alternatives?  I see them as working together, one
for
multi-line comments and one for in-line comments, with # for end-of-line
comments.

I'd rewrite your example below, as
code here;
#<<END_OF_COMMENT
     # this is a single line comment
     $foo = $a + $b #< here's an in-line comment ># + $c * $d;
END_OF_COMMENT
more code here;

----------------------------------------------------------
Ooohh...!!! I see now.

However I fail to see the need for both. Can you give an example of where I
could'nt use #<...># in place of #<< ?


BTW: I've been playing and I found that this looks cool and also works under
perl5:

<<'#';
    some commented lines
#

so your #<< sytax enjoys the benefit of looking a lot like Perl!

--Michael