
5 Nov
2009
5 Nov
'09
9:12 p.m.
Also, an nice way to check how evaluation works in ghci is to do something like:
if False && error "error here" then "it's true" else "it's false"
This expression will evaluate as "it's false" without any "error here"
error message appearing
On Thu, Nov 5, 2009 at 9:05 PM, Nathan M. Holden
If you have an if statement like
if (a&&b) then fun else fun'
and a is false, does GHC actually bother to check b? _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
-- keithsheppard.name