Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bbcbasic
· 9y ago · 0 comments
Haskell doesn't reject sequencing. f = g . h will require h is evaluated first.
Comments
[–]
tome
9y ago
h might not be evaluated at all! Consider
h x = factorial x g x = 0
(but I agree that Haskell doesn't reject sequencing).
[–]
bbcbasic
OP
9y ago
Yeah the IO monad will, but it isn't generally true of monads. Infant the maybe monad Will cease early on Nothing by design. So it is a brain shift.