Creeping Bloat in Phobos
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 28 13:38:54 PDT 2014
Walter Bright:
> It can work just fine, and I wrote it. The problem is
> convincing someone to pull it :-( as the PR was closed and
> reopened with autodecoding put back in.
Perhaps you need a range2 and algorithm2 modules. Introducing
your changes in a sneaky way may not produce well working and
predictable user code.
> I know that you care about performance - you post about it
> often. I would expect that unnecessary and pervasive decoding
> would be of concern to you.
I care first of all about program correctness (that's why I
proposed unusual things like optional strong typing for built-in
array indexes, or I proposed the "enum preconditions"). Secondly
I care for performance in the functions or parts of code where
performance is needed. There are plenty of code where performance
is not the most important thing. That's why I have tons of
range-base code. In such large parts of code having short,
correct, nice looking code that looks correct is more important.
Please don't assume I am simple minded :-)
Bye,
bearophile
More information about the Digitalmars-d
mailing list