Closed mattbierner closed 10 years ago
We can convert to lets with function bodies instead of using bind.
(\x -> x * 2) @ 10
Generates
let x = 10 in \ -> x * 2;
This can be applied recursively and may discard values
static sideEffect; (\x y -> x + y) @ 1 @ 2 @ (sideEffect());
generates
var x = 1, y = 2; (function() { return (x + y); });
sideEffect is never called. I feel this is the correct behavior.
sideEffect
We can convert to lets with function bodies instead of using bind.
Generates
This can be applied recursively and may discard values
generates
sideEffect
is never called. I feel this is the correct behavior.