Hi everybody,
Haskell is great! I have some questions:
Why is this:
(+ 1)
a curried invocation of the the plus operator, but this:
(+ 1 2)
is an error?
And in the same vein, why is this a negative number:
(- 1)
instead of a curried invocation of the subtraction operator?
Why can't I do this:
1 `(+)` 2
even if it is a little pathological?
And this might be a little implementation dependent, although I'll hazard it
anyways: Why can't I assign to things when running GHCi? Given my experience
with C like languages, the first thing I wanted to do with GHCi was to start
assigning to variables. I know that Haskell is purely functional, but it
seems like it should be able to allow assignment from the interpreter by
raising errors on rebinding. (Just like in erl, the erlang interpreter.)
All the best,
Casey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20080915/36752cf7/attachment.htm