I wish I could use D for everything
Christopher Wright
dhasenan at gmail.com
Thu Apr 30 03:50:12 PDT 2009
Steven Schveighoffer wrote:
> I can't wait for D to take over the world, so I no longer have to write
> in this horrid language ;)
C# is pretty reasonable. I see a fair number of things in recent
versions that have been in D for a while, and some other vaguely neat
things that D doesn't have on occasion.
My main complaint with C# is a lack of interesting template
capabilities. For example, I find that I often need two classes that are
extremely similar with some minor exceptions, and in D I could just use
a simple template, whereas in C# I have to duplicate the entire class.
(Think arguments to attributes.) The foreach situation you mentioned is
just silly, too.
On the other hand, my main complaint with D is the lack of reflection,
including attributes. I rarely use reflection in C#, but I make
extensive use of libraries that use reflection a lot (Rhino Mocks, the
Castle project, NHibernate...)
More information about the Digitalmars-d
mailing list