Why is std.algorithm so complicated to use?

Manfred Nowak svv1999 at hotmail.com
Mon Jul 9 15:10:14 PDT 2012


Andrei Alexandrescu wrote:

>> auto str = ["foo", "bar"].map!(x => x);
>> auto f = str.sort();
[...]
> The first error message is at clear as it goes:
> Error: r[i2] is not an lvalue
... and I panic on reading your answer, because I do not find a `r' nor 
an `i2' in the source. Therefore "is not an lvalue" stays without 
sense.

Some time ago Walter expressed, that he does not want D to become a 
language, which only specialists can interpret. But if error messages 
are part of a language and your "clear"-voting will stay, then "Hades" 
might become D's middle name.

-manfred


More information about the Digitalmars-d mailing list