Re: RFC 110 (v2) counting matches
[email protected] (Nathan Wiger)
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Message-ID | <[email protected]> |
Mark-Jason Dominus wrote: > > m/.../Count (instead of m/.../t) > m/.../iCount (instead of m/.../it) > m/.../Count,i (instead of m/.../ti) > m/.../Count,Insensitive (instead of m/.../ti) Blech, no. Please. Less typing good. More typing bad. If you're just proposing synonyms, I don't see anyone using these besides as mneumoics. In which case, the key is just making sure that we pick good letters. I don't see us running out of letters. Last I checked, m// only takes half a dozen flags. I haven't been counting, but I'm pretty sure I haven't seen 20 new flags proposed. If we want to use uppercase, make these unique as well. That gives us many more combinations, and is not necessarily confusing: m//f - fast match m//F - first match m//i - case-insentitive m//I - ignore whitespace And so on. This seems like a much more productive use, otherwise we're just wasting characters. -Nate