of "Conditional Implementation" vs "Assertive Input Validation"
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Jul 23 07:47:49 PDT 2012
On 7/23/12 7:10 AM, monarch_dodra wrote:
[snip]
> --------
> How do you feel about "assertive input validation" vs "conditional
> implementation"?
>
> Is this something you'd like to see more of in algorithm?
The assertive input validation has the problem it prevents an overload
outside of std.algorithm from working.
I think we should focus here on the compiler giving better information
about which part of the Boolean constraint failed.
Andrei
More information about the Digitalmars-d
mailing list