[Haskell-cafe] global variables
Taral
taralx at gmail.com
Wed May 23 19:31:29 EDT 2007
On 5/23/07, Adrian Hey <ahey at iee.org> 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 at gmail.com>
"Please let me know if there's any further trouble I can give you."
-- Unknown
More information about the Haskell-Cafe
mailing list