Y
Hacker News
new
|
ask
|
show
|
jobs
by
funnymony
1224 days ago
Conveniences like closures depend on gc
2 comments
Kukumber
1223 days ago
That's not true
https://dlang.org/spec/function.html#function-pointers-deleg...
link
dataflow
1224 days ago
C++ has had closures without a GC for over a decade now.
link
pjmlp
1223 days ago
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.
link
dataflow
1223 days ago
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.
link
https://dlang.org/spec/function.html#function-pointers-deleg...