[% setvar title Require explicit m on matches, even with ?? and // as delimiters. %]
Note: these documents may be out of date. Do not use as reference! |
To see what is currently happening visit http://www.perl6.org/
Require explicit m on matches, even with ?? and // as delimiters.
Maintainer: Nathan Torkington <gnat@frii.com> Date: 20 Aug 2000 Last Modified: 15 Sep 2000 Mailing List: perl6-language@perl.org Number: 135 Version: 3 Status: Frozen
?...?
and /.../
are what makes Perl hard to tokenize. Requiring
them to be written m?...?
and m/.../
would solve this.
Version 2 of this RFC redirects discussion of this topic to perl6-language-regex@perl.org.
Damian Conway's Text::Balanced module does a pretty good job of
tokenizing Perl code. However, bare /.../
and ?...?
require
semantic analyis to distinguish them from division and the hook
(A?B:C
) operator.
To remove this hassle, and thus permit programs that analyze the
source-code of other programs, I propose requiring that all matches
require an explicit m
.
Remove the bare /.../
and ?...?
from the grammar :-) When
converting perl5 programs to perl6, put the m
in.
perl6-language message
200008182343.JAA00690@indy05.csse.monash.edu.au
by Damian Conway