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

I need to vent.

Name: Anonymous 2009-08-10 14:16

French C "programmers" who refuse to read K&R, and rely on some random "tutorials" in the internet. And yes, K&R *was* indeed translated to French as well, and as soon as that fact was pointed out to them, they switch the reason to "it's too complicated lol".

FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCKK.

Name: Anonymous 2009-08-12 13:54

>>71
Currying is pretty much embedded into the language. If you specify less arguments to a function, it just returns a closure of the function and those arguments. When all the arguments have been supplied, either directly, or to the closure (to which you can specify more arguments as needed, which will either evaluate the function, or return a new closure if less arguments than needed were supplied), the function is evaluated.
This is explained very early in introductory O'Caml books.
There are some quirks related to the syntax, but I don't see what would break currying in O'Caml.

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