I have two questions/suggestions regarding regex syntax: 1) The :ii modifier is influenced by :sigspace modifier. IMHO this is ugly, because the matching part and the replacement part of a regex should be as orthogonal as possible. Therefore I'd like a different syntax for :ii :sigspace, maybe :smartcase (I'm always bad at inventing names, so please come up with different suggestions), or :ii :smartcase or some such. Any comments?
2) I noticed that in larger grammars (like STD.pm and many PGE grammars in the parrot repo) string literals are always quoted for clarity regex foo { 'literal' <subregex> } Since I think this is a good idea, we could just as well enforce that, and drop the <...> around method/regex calls: regex foo { 'literal' subregex } This way we'll approximate "normal" Perl 6 syntax, and maybe even improve huffman coding. I guess such a syntax wouldn't be acceptible in short regexes, which are typically written as m/.../, rx/.../ or s[...][..], so we could preseve the old syntax for these regexes. Do you think it would be worth the effort of maintaining (and teaching) two different regex syntaxes? (If this has been proposed and rejected before, please just tell me, I'm only following Perl 6 development for about a year). Cheers, Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature