<div dir="ltr">Hi everybody,<br><br>Haskell is great! I have some questions:<br><br>Why is this:<br><br>(+ 1)<br><br>a curried invocation of the the plus operator, but this:<br><br>(+ 1 2)<br><br>is an error?<br><br><br>And in the same vein, why is this a negative number:<br>
<br>(- 1)<br><br>instead of a curried invocation of the subtraction operator?<br><br><br>Why can&#39;t I do this:<br><br>&nbsp;1 `(+)` 2<br><br>even if it is a little pathological?<br><br><br>And this might be a little implementation dependent, although I&#39;ll hazard it anyways: Why can&#39;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.)<br>
<br><br>All the best,<br>Casey<br></div>