
28 Jun
2011
28 Jun
'11
12:56 p.m.
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@vidplace.com