Rant after trying Rust a bit

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 24 22:27:49 PDT 2015


On 7/24/2015 11:50 AM, H. S. Teoh via Digitalmars-d wrote:
> The only way to achieve this is to explicitly
> negate every condition in all other overloads:

Another way is to list everything you accept in the constraint, and then 
separate out the various implementations in the template body using static if.

It's a lot easier making the documentation for that, too.



More information about the Digitalmars-d mailing list