C++Now! 2012 slides
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Jun 7 16:10:12 PDT 2012
On 6/7/12 5:47 PM, Peter Alexander wrote:
> On Thursday, 7 June 2012 at 22:08:10 UTC, Andrei Alexandrescu wrote:
>> On 6/7/12 3:04 PM, Timon Gehr wrote:
>>> 'min' is not complicated.
>>
>> I agree.
>
> Then how come it has a bug where it doesn't work with user-defined types?
I just disagree. It's not complicated for what it does. It simply sets
out to solve a number of situations, and it solves them in pretty much
as many words as the English description thereof.
> Maybe it isn't complicated per your definition, but it's complicated
> enough that it has a bug for a prominent use case.
Complication is not necessarily the reason for bugs. Your one-liner had
a bug.
Andrei
More information about the Digitalmars-d
mailing list