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

Max Samukha samukha at voliacable.com.removethis
Thu Feb 19 04:13:12 PST 2009


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.



More information about the Digitalmars-d mailing list