[Haskell-cafe] Re: A heretic question
Achim Schneider
barsoap at web.de
Wed Oct 22 09:26:27 EDT 2008
Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
> 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?
>
Haskell: What language do you want to speak today?
--
(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.
More information about the Haskell-Cafe
mailing list