Why I chose D over Ada and Eiffel

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Wed Aug 21 07:38:30 PDT 2013


On Wednesday, 21 August 2013 at 13:54:59 UTC, Ramon wrote:
>> So D's generics may be lacking, the ability to write generic 
>> algorithms is still there.
>
> As long as I can have "generics" and not merely a very smart
> fill-in template system - or, even better, both - I'm content
> enough.

This is the statement which throws me. Templates are generic, 
there is this feature called "generics" which is an 
implementation to provide generic functions/classes (D does not 
have). But the concept of making things generic is perfectly 
achievable with templates.

Since I don't know Eiffel I don't know the exact approach to 
generics you're interested in, but D provides Templates to handle 
generics.

D also provides Interfaces and Inheritance for polymorphism, 
which may be what is of interest to you, but those aren't 
generics.

I hope D does what you want well enough, but which how you talk 
of generics I just don't know what you mean. And I don't write 
this as an attack, only to try and explain my confusion. (maybe 
others can correct my understanding).


More information about the Digitalmars-d mailing list