Creeping Bloat in Phobos

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 29 07:25:32 PDT 2014


On Sunday, 28 September 2014 at 23:21:15 UTC, Walter Bright wrote:
> It's very simple for an algorithm to decode if it needs to, it 
> just adds in a .byDchar adapter to its input range. Done. No 
> special casing needed. The lines of code written drop in half. 
> And it works with both arrays of chars, arrays of dchars, and 
> input ranges of either.

This just misses the *entire* familly of algorithms that operate 
on generic types, such as "map". EG: the totality of 
std.algorithm. Oops.


More information about the Digitalmars-d mailing list