Is D more complex than C++?
Nick Sabalausky
a at a.a
Mon Mar 28 20:19:52 PDT 2011
"ToNyTeCh" <tt at nospam.net> wrote in message
news:imri5l$1ahi$1 at digitalmars.com...
> Seriously, I wanna know. How many lines of compiler code does it take for
> each (Walt should have the best handle on this, surely)? The LOC is one
> parameter, but I don't want just that -- it just came to mind while typing
> the overall question. The intricacy of the compiler is much more important
> thatn the LOC. (Is D's compiler more intricate than C++'s?). Any facts,
> feelings, guesses, whatever, are all welcomed in response. The complexity
> in regard to usage would be a good thing to hear about from users of all
> levels of experience (with D and other languages).
I've never actually implemented either, and have dealt very little with the
soruce for either, but these are my (unreliable) impressions of it:
C++ is a complex monster, and has a lot of bizarre complexity in areas that
really shouldn't need to be so complex. D cleans up much of that. But that
cleanup gives D room for additional, but "cleaner", things to be added, like
CTFE. So they're both complex compared to the average "minimalism"-driven
langauge, but D makes more effective use of complexity. One "unit of
complexity" gives you more benefit in D.
Of course, this is a D newsgroup, so naturally we're going to be a bit more
in favor of D, anyway, FWIW.
More information about the Digitalmars-d
mailing list