Creeping Bloat in Phobos

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 29 05:36:24 PDT 2014


Am Sun, 28 Sep 2014 16:21:14 -0700
schrieb Walter Bright <newshound2 at digitalmars.com>:

> On 9/28/2014 1:39 PM, H. S. Teoh via Digitalmars-d wrote:
> > The problem with pulling such PRs is that they introduce a dichotomy
> > into Phobos. Some functions autodecode, some don't, and from a user's
> > POV, it's completely arbitrary and random. Which leads to bugs because
> > people can't possibly remember exactly which functions autodecode and
> > which don't.
> 
> That's ALREADY the case, as I explained to bearophile.
> 
> The solution is not to have the ranges autodecode, but to have the ALGORITHMS 
> decide to autodecode (if they need it) or not (if they don't).

Yes, that sounds like the right abstraction!

-- 
Marco



More information about the Digitalmars-d mailing list