
22 Oct
2008
22 Oct
'08
7:04 a.m.
Hello Mauricio, Wednesday, October 22, 2008, 2:23:55 PM, you wrote:
Well, one thing I miss from C++ is the idea of acquiring resources in constructors and releasing them in destructors, as explained here:
(Haskell uses that in 'with...' functions, like 'withFile', but the syntax in C++ seems cleaner to me.)
i think that in haskell you may put to action any syntax of RAII - both Java-like (with finally) and C++ like (with implicit destructors). what concrete style you need to simulate? -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com