[Haskell-beginners] Does haskell have to have values?

Stephen Tetley stephen.tetley at gmail.com
Wed Mar 23 23:52:12 CET 2011


On 23 March 2011 20:17, Mike Meyer <mwm at mired.org> wrote:

>
> (+)     accepts one argument and returns a function that accepts one
>        argument and returns a zeroadic function that returns the
>        value of the sum of the two arguments.
> (+ 5)   accepts one argument and returns a zeroadic function that ...
> (3 + 5) a zeroadic function that returns 8
>
> So the question is - is there any advantage or harm in this way of
> looking at values?


Be careful, wise voices appear to conclude it is harmful:

http://conal.net/blog/posts/everything-is-a-function-in-haskell/



More information about the Beginners mailing list