haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] global variables

Subject: Re: [Haskell-cafe] global variables
From: Taral
Date: Wed, 23 May 2007 18:31:29 -0500
On 5/23/07, Adrian Hey <ahey@xxxxxxx> wrote:
I think I still prefer..

var :: IORef Int
var <- newIORef 3

So do I. For one very good reason: this syntax could be defined as a
"constructor" syntax and guaranteed to run before main.

The other syntaxes proposed don't strike me as sufficiently rigorous.

--
Taral <taralx@xxxxxxxxx>
"Please let me know if there's any further trouble I can give you."
   -- Unknown
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>