Hacker News new | ask | show | jobs
by funnymony 1224 days ago
Conveniences like closures depend on gc
2 comments

C++ has had closures without a GC for over a decade now.
As syntactic sugar for how C++ functors used to be implemented, and they also bring their own set of issues when interoperating with co-routines.
If anything that's a statement about coroutines, not closures. And even then, not every coroutine has problems. I don't see a logical implication from that to a GC requirement.