On Monday, 11 July 2016 at 02:35:13 UTC, Jonathan M Davis wrote:
On Monday, July 11, 2016 01:16:11 Adam Sansier via
Digitalmars-d-learn wrote:
[...]
It's more a case that you're just making life harder for
yourself if you avoid the GC. Some programs (like AAA games)
are going to need to avoid the GC, but your average program is
going to be just fine using the GC - especially if you use
idiomatic D and favor structs over classes and use ranges
rather than allocating a bunch of stuff on the heap like you'd
do in Java, or even often in C++. So, most folks who are trying
to avoid the GC are causing themselves pain by doing so without
actually needing to. It's perfectly possible to do avoid the GC
in D, and some programs will need to, but most won't, and
avoiding the GC is always more of a pain than just using it.
[...]
Yes, thanks. I know. Even if I didn't, it doesn't matter ;) I
think it would be more beneficial to try to address the pitfalls
rather than the `what if's`, hypotheticals and cliff hangers.
You know, you don't see your argument much in C++ forums. In
fact, it's probably the opposite ;)
Do I have to write a song called `Don't fear the GC`?