[Haskell-cafe] Re: [Haskell] Top Level <-

Ganesh Sittampalam ganesh at earth.li
Mon Sep 1 17:45:05 EDT 2008


On Mon, 1 Sep 2008, Adrian Hey wrote:

> Actually all this use of the tainted and derogatory term "global
> variable" is causing me to be imprecise. All MVars/IORefs have "global" 
> main/process scope whether or not they're bound to something at the
> top level.

"Global variable" is exactly the right term to use, if we are following 
the terminology of other languages. We don't call the result of malloc/new 
etc a "global variable", unless it is assigned to something with top-level 
scope.

Ganesh


More information about the Haskell-Cafe mailing list