[Haskell-cafe] If the local variable can be changed ...

Ivan Miljenovic ivan.miljenovic at gmail.com
Wed Mar 10 01:05:12 EST 2010

On 10 March 2010 16:45, zaxis <z_axis at 163.com> wrote:
> Yes, we can imitate all of it (such as `when`, `until` and `for`) because
> haskell is a good DSL language.
> However, i feel it will be more convenient if the language itself supports
> all these fundations.

You seem to be missing the point of referential transparency [1] and
purity [2], something
which most of us quite _like_ about Haskell.  If you absolutely _need_
mutation within
Haskell, see IORefs and the like.

[1]: http://en.wikipedia.org/wiki/Referential_transparency_(computer_science)
[2]: http://en.wikipedia.org/wiki/Purely_functional

Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com

More information about the Haskell-Cafe mailing list