Skip to main content

Questions tagged [closure]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
869 views

How do languages with only reference counting deal with closures?

Reference counting works best if there are no cycles. But closures that allow access to every variable in the parent scope by default automatically create cycles. There are obvious solutions like only ...
user23013's user avatar
  • 2,390
5 votes
2 answers
387 views

How can I compile closures in WebAssembly?

Consider the following pseudocode: ...
Aster's user avatar
  • 3,208
12 votes
6 answers
2k views

Early binding, mutual recursion, closures. Can I have all three?

Take this Python snippet of two functions that are mutually recursive and form closures: ...
BoppreH's user avatar
  • 1,441