On 02/24/2013 04:59 AM, Steven Schveighoffer wrote:
...D is much different (and better IMO) ...
IMO The best way to think about it is that the two approaches are not comparable. D templates are a kind of hygienic macro system for declarations. Java does not have this. Java generics make the type system more expressive. D lacks this kind of expressiveness.