[Haskell-beginners] Immutable refs for the functional code to get emulation of o.o. inner/nested classes

Felipe Almeida Lessa felipe.lessa at gmail.com
Tue Jan 31 14:18:08 CET 2012


On Tue, Jan 31, 2012 at 10:56 AM, Gabriel Riba <griba2001 at gmail.com> wrote:
> The idea is to have immutable refs readable safely from the functional code.

We already have this!

  let x = ...

Now x is an immutable reference readable safely from functional code
=).  And I'm being serious here, your ImmIORef does not have any
advantages over a plain value.

Maybe you could elaborate on what you're trying to achieve?

Cheers!

-- 
Felipe.



More information about the Beginners mailing list