A comparison between Rust and D

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 26 06:04:10 PDT 2016


On 24/06/16 19:26, maik klein wrote:
> https://maikklein.github.io/post/cmp-rust-d/
>
> https://www.reddit.com/r/programming/comments/4po2j5/a_comparison_between_rust_and_d/

It's possible in D to collect multiple functions for one set of 
constraints using a template:

template Foo(T) if (is(T : int))
{
     void a(T x) {}
     void b(T y) {}
}

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list