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:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to