Skip to main content

Questions tagged [closure]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
891 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,510
5 votes
2 answers
395 views

How can I compile closures in WebAssembly?

Consider the following pseudocode: ...
Aster's user avatar
  • 3,228
12 votes
6 answers
3k 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