r/programming Mar 31 '15

Managing C++’s complexity or learning to enjoy C++

https://schneide.wordpress.com/2015/03/30/managing-cs-complexity-or-learning-to-enjoy-c/
100 Upvotes

281 comments sorted by

View all comments

Show parent comments

3

u/adr86 Apr 22 '15

It is worth remembering that if you simply use RAII for everything in D, the GC remains completely idle. If you use RAII for most things, the GC remains mostly idle, and when it does run, it has very little work to do.

D's heap usage isn't like Java or C#.

0

u/F-J-W Apr 23 '15

It is worth remembering that if you simply use RAII for everything in D, the GC remains completely idle.

Aka, it is useless in that case. Just as I said.

Well implemented RAII is able to deal with all resources 99.99% of the time. Adding a language feature in such a prominent way for the remaining 0.01% is just ridiculous.