[Haskell-cafe] Re: Global Variables and IO initializers

Peter Simons simons at cryp.to
Mon Nov 8 17:22:29 EST 2004


jeff  writes:

 >> Just ask the C++ folks about the wonders of global
 >> variables that are actually complex classes with a
 >> constructor and a destructor.

 > You can't use that as an argument against global
 > variables in other languages.

Why not? Does the creation of global variables never fail in
Haskell? Besides, my main point is that they are
_unnecessary_ in my experience, not that it were impossible
to implement them.

Peter



More information about the Haskell-Cafe mailing list