[Haskell-cafe] Re: A heretic question

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Oct 22 07:04:24 EDT 2008


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 at gmail.com



More information about the Haskell-Cafe mailing list