
24 Jun
2014
24 Jun
'14
5:14 p.m.
On Tue, Jun 24, 2014 at 10:37:35PM +0530, C K Kashyap wrote:
Thanks Nicholas :) ... and if I understand right doing `seq` would be equivalent to Strict IO that Darren mentioned. right?
It's probably best to think of them as distinct. Strict IO roughly means the whole file will be read at once so the file handle can be released. On the other hand `seq`ing the `length` forces the calculation of the length so the file is read completely and the file handle can be released. They have similar outcomes but the means of achieving them is different. Tom