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

Reply via email to