[Haskell-cafe] Re: Changing type of 'when'
briqueabraque at yahoo.com
Wed Jan 28 10:10:12 EST 2009
>> ? It is easy for 'when' to ignore the result
>> of the first computation, and this would not
>> break existing code, and also save a lot of
>> >> return ()s.
> As Neil Mitchell pointed out, ignoring results implicitly may
> indicate an error. Perhaps it's cleaner to define
> ignore m = m >> return ()
But isn't exactly that the behavior of (>>)?
Anyway, I like the 'ignore' idea.
More information about the Haskell-Cafe