loading...

re: How to make functions partially applicable in Javascript VIEW POST

FULL DISCUSSION
 

Call me stupid if you will (and this is clearly very clever), but what real world problem would I solve with this sort of thing?

 

If nothing else, it forces you to think in ways you wouldn't otherwise. I believe Larry Wall (creator of Perl) recommends Haskell as an "academic" language for this reason :)

 

It can be useful if you design a library and you are thinking on the proper api. It can be combined for example with fluent interface: x(a).y(b)(c) etc. So it is good only for sugar syntax.

Code of Conduct Report abuse