[% setvar title Replace first match function (C...?>) with a flag to the match command. %]
Note: these documents may be out of date. Do not use as reference! |
To see what is currently happening visit http://www.perl6.org/
Replace first match function (?...?
) with a flag to the match command.
Maintainer: Stephen P. Potter <spp@ds.net> Date: 24 Aug 2000 Mailing List: perl6-language@perl.org Number: 156 Version: 1 Status: Developing
The first match function should be removed from the language and its functionality should be implemented via a flag to the standard match function.
The syntax of the first match function is a special case anomoly which causes the parser to have to work harder. Removing its special syntax would simplify the language definition and make writing parsers easier.
It is recommended that the flag be f
, which is a mneumonic for "first".
Additionally, the code for the parser which checks for ?...?
should
be removed from the grammar.
perl6-language message
200008182343.JAA00690@indy05.csse.monash.edu.au
by Damian Conway
RFC 135: Require explicit m on matches, even with ?? and // as delimiters.