[Haskell] Scripting language: is Haskell a good choice?
Philippa Cowderoy
flippa at flippac.org
Tue Jan 24 16:56:52 EST 2006
On Tue, 24 Jan 2006, Jules Jacobs wrote:
> Is that a problem because Haskell is functional,
> or is there be an obvious and nice way to implement an imperative scripting
> language?
>
There're several. Perhaps the most obvious if your scripting language will
do IO anyway is just to use IORefs, or you could use the ST monad or a map
from references to values (good for debugging purposes because you can
keep an entire trace in memory - because individual maps're immutable,
they can share data so this means less memory consumed than you might
think).
--
flippa at flippac.org
Performance anxiety leads to premature optimisation
More information about the Haskell
mailing list