Front page | perl.perl6.language |
Postings from April 2006
Two comments about S05
From:
Markus Laire
Date:
April 22, 2006 04:27
Subject:
Two comments about S05
Message ID:
67d53e40604220426l2a345d85ob4802ab8ef445251@mail.gmail.com
Here are two comments after reading S05, Version 18 at
http://dev.perl.org/perl6/doc/design/syn/S05.html
In section "Extensible metasyntax (<...>)"
<quote>
With both bare hash and hash in angles, the key is always skipped over
before calling any subrule in the value. That subrule may, however,
magically access the key anyway as if the subrule had started before
the key and matched with <KEY> assertion. ...
</quote>
I first read this "key is always skipped over" meaning that the key is
allways ignored. Perhaps this text could be clarified.
In section "Backslash reform"
<quote>
The \G sequence is gone. Use :p instead. (Note, however, that it makes
no sense to use :p within a pattern, since every internal pattern is
implicitly anchored to the current position. You'll have to explicitly
compare <( .pos == $oldpos )> in that case.)
</quote>
Shouldn't this be <?{ ... }> (code assertion) instead of <( ... )>
(result capture)?
--
Markus Laire
-
Two comments about S05
by Markus Laire