[Haskell-cafe] FAQ: Why no interactive definitions?
J. Garrett Morris
trevion at gmail.com
Thu Dec 22 14:06:23 EST 2005
In ghci at least, you can enter definitions like that using let binding:
let mysquare x = x * x
On 12/22/05, Greg Woodhouse <gregory.woodhouse at sbcglobal.net> wrote:
> In neither GHCi nor Hugs (so far as I know) is it possible to
> interactively enter definitions. coming from Scheme, this was a bit of
> a surprise, as I'm used to being able to enter, say
> (define mysquare
> (lambda (x)
> (* x x)))
> Is this just a matter of the feature not being implemented, or is there
> a deeper reason for this?
> Gregory Woodhouse <gregory.woodhouse at sbcglobal.net>
> "Interaction is the mind-body problem of computing."
> --Philip L. Wadler
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
We have lingered in the chambers of the sea
By sea-girls wreathed with seaweed red and brown
Till human voices wake us, and we drown.
More information about the Haskell-Cafe