Michael Mathews wrote:
>
> So this should work in Perl 6
>
> code here;
> #<
> # this is a single line comment
> $foo = $a + $b #< here's an in-line comment ># + $c * $d;
> >#
> more code here;
If starting in column 1 is going to be magic, you may as well
make the magic char #, so:
#<
# this is a single line comment
$foo = $a + $b #< here's an in-line comment ># + $c * $d;
#>
And then, you may as well make it =, and use some meaningful
verbiage instead of "<" and ">". So:
=begin comment
# this is a single line comment
$foo = $a + $b #< here's an in-line comment ># + $c * $d;
=end comment
The pod solution is more or less obvious. Inlinable nestable
comments are something else, and it should look like perl.
qc() -- compiled to nothingness.
--
John Porter
- RFC: multiline comments Michael Mathews
- Re: RFC: multiline comments John Porter
- Re: RFC: multiline comments Michael Mathews
- Re: RFC: multiline comments Edwin Wiles
- Re: RFC: multiline comments Glenn Linderman
- Re: RFC: multiline comments Michael Mathews
- Re: RFC: multiline comments John Porter
- Re: RFC: multiline comments Edwin Wiles
- Re: RFC: multiline comment... Jarkko Hietaniemi
- Re: RFC: multiline comment... Jarkko Hietaniemi
- Re: RFC: multiline comment... Russ Allbery
- Re: RFC: multiline comment... Mike Pastore
- Re: RFC: multiline comment... Uri Guttman
- Re: RFC: multiline comments Tom Christiansen
- Re: RFC: multiline comments John Porter
- Re: RFC: multiline comment... Tom Christiansen
- Re: RFC: multiline comment... John Porter
