develooper Front page | perl.perl6.language | Postings from August 2006

Apply the unpace rule into embedded comments

Agent Zhang
August 13, 2006 05:54
Apply the unpace rule into embedded comments
Message ID:
Hi, there~

While I was adding tests to t/syntax/comments.t in the Pugs test suit
this afternoon, I suddenly came up with this form of embedded

    my $foo = #\   (this is a comment) 42;
    is $foo, 42;

Now that we have the excellent unspace rule, why can't we use it
consistently with the embedded comment syntax?

As Luke said on #perl6, although this is not an important issue at
all, it's an interesting corner case in Perl 6's syntax. :=)

Agent Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About