Re:Beautiful Binary Search in D
by funnymony on Saturday February 18, 2023 @04:32PM
(#34851320)
Conveniences like closures depend on gc
[ Parent
| on HN ]
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.