Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Proof that Haskell sucks!

Name: Anonymous 2012-02-18 5:44

Check out the Rosetta Code page on Y Combinator.  In many languages that you would not even expect, this functional combinator is simple and straighforward.

For instance, Algol 68!

Haskell? "The obvious definition of the Y combinator in Haskell canot be used because it contains an infinite recursive type (a = a -> b). Defining a data type (Mu) allows this recursion to be broken. "

What kind of a shit functional language doesn't let you define the Y combinator using the obvious definition?

Oh right, the same one in which contortions are required to put items of different types into the same linked list.

Name: Anonymous 2012-02-18 16:02

>>8
The difference is that yours is a recursive function where the function name is visible within its body while the Y combinator is a combinator.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List