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

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Feb 19 06:54:23 PST 2009


Max Samukha wrote:
> On Thu, 19 Feb 2009 06:47:57 -0500, bearophile
> <bearophileHUGS at lycos.com> wrote:
> 
>> If not already so, I'd like sub() to take as replacement a string or a callable.
>>
>> Bye,
>> bearophile
> 
> I don't like 'sub' because it can denote anything. The most confusing
> is substring. 'replace' seems to be better.

Ok.

Andrei



More information about the Digitalmars-d mailing list