The Case Against Autodecode
Jack Stouffer via Digitalmars-d
digitalmars-d at puremagic.com
Thu May 12 19:55:01 PDT 2016
On Thursday, 12 May 2016 at 20:15:45 UTC, Walter Bright wrote:
> 2. Every time one wants an algorithm to work with both strings
> and ranges, you wind up special casing the strings to defeat
> the autodecoding, or to decode the ranges. Having to constantly
> special case it makes for more special cases when plugging
> together components. These issues often escape detection when
> unittesting because it is convenient to unittest only with
> arrays.
This is a great example of special casing in Phobos that someone
showed me:
https://github.com/dlang/phobos/blob/master/std/algorithm/searching.d#L1714
More information about the Digitalmars-d
mailing list