Conversation

(Our assembly language target doesn't support branch-to-address, and there is no heap, so the possibilities are quite limited.)
1
None of the languages I use day to day use that term, so I would mentally translate it into something more familiar like "closure" or "block" and then be a little startled when I couldn't capture anything. Swift calls these "thin closures", but I think that's one we made up.
2
2
many GC’d languages don’t make any distinction based on whether something closes over variables or not; Ruby’s distinctions are particularly weird; Haskell programmers only differentiate syntactically (top-level vs. where clause vs. lambda) and ghc does whatever it wants anyway
1
2
typically I’d say “lambda” to mean “function written inline in an expression” or even “function written with the \ syntax,” but I’d roughly consider “function” and “lambda” synonymous.
2
2
Show replies