Creeping Bloat in Phobos
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 28 13:43:53 PDT 2014
On 9/28/14, 1:39 PM, H. S. Teoh via Digitalmars-d wrote:
> On Sun, Sep 28, 2014 at 12:57:17PM -0700, Walter Bright via Digitalmars-d wrote:
>> On 9/28/2014 11:51 AM, bearophile wrote:
>>> Walter Bright:
>>>
>>>> but do want to stop adding more autodecoding functions like the
>>>> proposed std.path.withExtension().
>>>
>>> I am not sure that can work. Perhaps you need to create a range2 and
>>> algorithm2 modules, and keep adding some autodecoding functions to
>>> the old modules.
>>
>> 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.
>
> 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.
I agree. -- Andrei
More information about the Digitalmars-d
mailing list