I do not want to make a flame over D vs C++11.
I answered else thread on some differences of C++11 vs D, but i agree
with you that i was a little bit in a hurry.
After rechecking i remembered constraints, static compilation (static
if), contract programming, functional programming. perhaps i skipped
something.
For those features you mentioned:
- templates are know quite sane, but D still outperforms it. The
question is how many people would benefit from this difference.
- thread local variables: thread local storage (though not default)
- message passing implemented via libraries: boost.task?
- immutables are only needed for functional programming which in
turn necessary for parallelizing / distributed applications / formal
verification. I don't know, does D (compiler) utilize it?
Once again, i'm not trying to make a holywar. I'm D lover myself. But
a lot of people do not consider this benefits of D enough to shift to
it as for my opinion and experience.
On 2011-12-18 01:53:14 +0000, Timon Gehr said:
On 12/18/2011 02:42 AM, a wrote:
Ruslan Mullakhmetov Wrote:
Currently, after
introducing C++11 i see the only advantages of D over C++11 except
syntax sugare is garbage collector and modules.
So you are saying that sane templates, range based standard library and
concurrency improvements (thread local variables, immutable, message
passing) are all just syntactic sugar?
And you didn't even mention CTFE and code generation yet.
--
BR, Ruslan Mullakhmetov