[Haskell] Real life examples

Ben Rudiak-Gould Benjamin.Rudiak-Gould at cl.cam.ac.uk
Thu Nov 25 12:43:48 EST 2004

John Meacham wrote:

 >I should say that efficiency is the only thing I have been concerned
 >about in this conversation. As I said in the mdo proposal, there is no
 >efficient and safe way to do global variables in haskell.

I think George Russell's library (with a simple extension) can be used 
to create global variables safely and with the same per-access 
efficiency as the other proposals:


 >Your library addresses a different issue, it provides an interface
 >for global variables, but it doesn't address the fundamental problem
 >that your library or ones like it cannot be implemented in haskell.
 >[...much elaboration on this idea omitted...]

I think I completely answered this objection in another message yesterday:


In short, his proposal should be considered in the same light as yours, 
as a /primitive/ extension to Haskell. (But I'd prefer you respond to my 
previous message rather than that sentence.)

-- Ben

More information about the Haskell mailing list