[Haskell-beginners] A first try
David Place
d at vidplace.com
Tue Jun 28 14:56:16 CEST 2011
On Jun 28, 2011, at 8:39 AM, Heinrich Apfelmus wrote:
> There is still a return value, but withFile makes sure that it's evaluated to WHNF. If you choose a = (), then you're fine, otherwise it's not entirely foolproof.
Yes, I was wondering about this. Since it is still possible to get in trouble in exactly the same way, why is this an improvement over withFile? If you return () from withFile, you have the same benefit.
____________________
David Place
Owner, Panpipes Ho! LLC
http://panpipesho.com
d at vidplace.com
More information about the Beginners
mailing list