News for hackers. Stuff that matters.
Re:A lambda is not necessarily a closure by PeCaN on Tuesday February 09, 2016 @01:03AM (#11063442)
There's a subtle but important difference. They're not necessarily tied to each other anyway. For example in Python you frequently have lots of named functions that capture some variables in an outer scope, and are closures but not lambdas.
Re:A lambda is not necessarily a closure by recursive on Tuesday February 09, 2016 @02:11AM (#11063661)
Yes. You can do the same thing in javascript.

But it's pointless to say that "the source code that, when evaluated, creates a named function, is itself not a function" is just pointless lawyerism.

Re:A lambda is not necessarily a closure by adwf on Tuesday February 09, 2016 @05:34AM (#11064439)
Pointless until you start dealing with macros. It can be important in some cases to know whether the closure "code" has been evaluated at that point or not.