
26 Oct
2004
26 Oct
'04
6:28 a.m.
Marcin 'Qrczak' Kowalczyk wrote:
I would not be surprised if relying on GC to close open files would be generally considered kosher in a few years - in cases when it has little visible effects outside, i.e. excluding network connections, but including reading configuration files.
The best idea I've seen is another one from Microsoft Research. It's an extension to C that allows the the programmer to use the type system to specify the lifetime of things. Seems like a pretty good idea: http://research.microsoft.com/vault/ Not sure how you'd do something like that in Haskell though! Cheers, Sam