
22 Nov
2004
22 Nov
'04
12:55 p.m.
Abraham Egnor wrote:
I've found that when writing an interface to a C library that requires resource management, it's much better to use the withX (see Control.Exception.bracket) style of function than to use finalizers - programs are much easier to reason about and debug.
... and have a much more deterministic behaviour regarding resource consumption. This is a very important point which is often forgotten. Cheers, S.