Lost a new commercial user this week :(

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sat Dec 27 03:46:09 PST 2014


On 2014-12-27 09:32, Mike Parker wrote:

> auto split(R, E)(R r, E delim) if (isForwardRange!R &&
> is(typeof(ElementType!R.init == E.init)));
> auto split(alias isTerminator, R)(R r) if (isForwardRange!R &&
> is(typeof(unaryFun!isTerminator(r.front))));
>
> Umm... all I want is to split a string on a specific character. What's
> all this mess about ElementTypes and Rs and Es and unaryFuns and....

What we need is simplified signatures in the documentation. The template 
constrains could be hidden, then have a button to show them. Same thing 
with special default values, i.e. __FILE__, __LINE__ and so on.

https://issues.dlang.org/show_bug.cgi?id=13676

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list