Is str ~ regex the root of all evil, or the leaf of all good?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Feb 19 08:01:38 PST 2009


Andrei Alexandrescu wrote:
> Derek Parnell wrote:
>> On Thu, 19 Feb 2009 07:01:56 -0800, Andrei Alexandrescu wrote:
>>
>>> These all put the regex before the string, something many people 
>>> would find unsavory.
>>
>> I don't. To me the regex is what you are looking for so it's like saying
>> "find this pattern in that string". 
> 
> Yah, but to most others it's "match this string against that pattern". 
> Again, regexes have a long history behind them. So probably we need to 
> have both "find" and "match" with different order of arguments, something .

... "I'm not thrilled about".

Andrei



More information about the Digitalmars-d mailing list