[Haskell-cafe] idea for avoiding temporaries

Matthias Neubauer neubauer at informatik.uni-freiburg.de
Thu Mar 8 17:09:35 EST 2007

David Roundy <droundy at darcs.net> writes:

> I see.  But how would one manage these handles? What's to keep me from
> accidentally copying a handle? It sounds like it'd require explicit memory
> management, in order to avoid ever copying a handle, if I were to implment
> this myself.

Because you seem to write imperative code anyways: can't you simply
use a specialized state monad with the array(s) hidden inside the
monad as monad state?


Matthias Neubauer                                       |
Universität Freiburg, Institut für Informatik           | tel +49 761 203 8060
Georges-Köhler-Allee 79, 79110 Freiburg i. Br., Germany | fax +49 761 203 8052

More information about the Haskell-Cafe mailing list