4 ms·
> Call-by-name is just syntactic sugar for anonymous functions. No, it's not. It defines different evaluation semantics.
by forkerenok 9y ago
> Call-by-name is just syntactic sugar for anonymous functions.
No, it's not. It defines different evaluation semantics.
- raquo 9y agoWhich are exactly equivalent to a function call, just with a different type, and a syntax without parens. "this will be re-evaluated every time you access it"
- forkerenok 9y agoI see what you meant now. Though it seems you are mixing notions of anonymous function and function as an argument of higher order functions (it doesn't have to be anonymous).