[Haskell-cafe] Rethinking OO idioms

Mike Burns mike at mike-burns.com
Wed Sep 29 23:23:55 EDT 2004


--- John Goerzen mumbled on 2004-09-29 20.29.47 +0000 ---
> The next thing that occured to me is that, unlike OCaml and Python
> classes, Haskell has no mutable variables.  A call like
> config.setOption("main", "initpath", "/usr") in Python -- which alters
> the state of the config object and returns nothing -- would be
> impossible in Haskell (unless perhaps the FiniteMaps are mutable
> somehow?)  

http://www.ccs.neu.edu/home/matthias/Presentations/ecoop2004.pdf

Mutation is not very OO-like.

-- 
Mike Burns netgeek at speakeasy.net http://mike-burns.com


More information about the Haskell-Cafe mailing list