Daily downloads in decline
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 11 08:03:36 PDT 2015
On Thursday, 11 June 2015 at 13:16:13 UTC, Dennis Ritchie wrote:
> Do templates Rust is better than D?
Those are considerably less powerful:
- can only have type arguments
- no variadic argument list support
- no arbitrary condition constraints (thus only partial duck
typing support)
On the other hand they have one important advantage: all type
arguments must comply to one or more trairs and thus bodies of
generics are checked before institation. You are only allowed to
call methods and operations of generic arguments that are defined
in relevan trait. This is huge win for code hygiene compared to D.
Any sort of more advanced meta-programming things can only be
done via AST macros which is currently the biggest downside in my
eyes when it comes to features. Though quite some people like
that.
More information about the Digitalmars-d
mailing list