Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
distortion
on Nov 6, 2009
|
parent
|
context
|
favorite
| on:
Introducing Closure Tools
Of course Haskell has closures, there's always a scope to close over:
f x = (\y -> x + y)
blasdel
on Nov 6, 2009
[–]
That's still just high-level lexical sugar - the 'scope' is not captured, just rewritten. After desugaring, there is no scope left, even lexically.
It's completely different from a 'closure' in a language that has variables.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
f x = (\y -> x + y)