D vs. C#

Hasan Aljudy hasan.aljudy at gmail.com
Thu Nov 23 15:50:05 PST 2006



Frank Benoit (keinfarbton) wrote:
> I want to write an article about D. Therefore I want to show more
> details and advantages of D compared to C++, Java and C#. But I never
> used C#.
> 
> What are concrete things that are better in D or C#? Can you make examples?

I honestly think you cannot write an objective comparison if you don't 
have experience writing C# applications/programs.

I just wanna comment on what Andrey wrote as well:

Andrey Khropov wrote:
 > Frank Benoit (keinfarbton) wrote:
 > I think the biggest thing is that you have no metaprogramming support 
in C#
 > (only type-parametrized classes and functions via generics) whereas 
you have
 > templates in D.
 >
 > Plus DbC and built-in unit testing.
 >
 > Another good thing C# lacks is aliases (AFAIK only namespace aliases are
 > supported) and strong typedefs.

Well, so what? Just because it doesn't have meta programming doesn't 
mean D is better than C#. Maybe it actually means the opposite.
I mean, you can't put that kind of thing in an article and hope that it 
will attract programmers to D.
One might even argue that having a unittest framework is better than a 
built-in unittest construct.
Same applies for aliases and string typedefs.



More information about the Digitalmars-d mailing list