Posted by: Anonymous
[ip: 67.183.83.234]
on January 18, 2008 11:06 AM
D > C++ because it has built-in GC, no real cruft left over from C, and especially because it has first-class support for metaprogramming. You can evaluate normal runtime functions at compile time (as long as they are pure functions), which makes it possible to do all sorts of compile-time optimizations that simply are beyond the scope of most imperative languages. D also has built-in support for unit tests (you write them in the same source as your code, if you want), contracts (a la Eiffel), and type inference (which is certainly not something you expect from a C- or Java-like language). Go ahead and wait for C++ to get type inference, if you're lucky. They've been talking about overloading 'auto' for years. You would not believe how much needless redundancy is eliminated by type inference (and it makes complex template expressions totally easy to work with...try to name the resulting type of a big MPL expression). Overall, D offers a bunch of stuff that neither C++ nor Java have or are likely to get in the near future.
New D language pumps up programmer productivity
Posted by: Anonymous [ip: 67.183.83.234] on January 18, 2008 11:06 AM#