What's the deal with "Warning: explicit element-wise assignment..."

via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 30 09:40:23 PDT 2014


On Wednesday, 30 April 2014 at 15:51:09 UTC, Andrei Alexandrescu 
wrote:
>> Why all
>> the specialized functions in algorithm.d? Why not just have a 
>> default
>> predicate that is always true and do compile time 
>> optimizations?
>
> That would be an awful idea. -- Andrei

Why?

By having a gazillion functions doing almost the same thing you 
are moving away from generic programming…


More information about the Digitalmars-d mailing list