4 ms·
On a side note, I just watched Crockford on Javascript and he said lambda functions are the greatest innovation in computer science. Could you point me toward a
by doctoboggan 15y ago
On a side note, I just watched Crockford on Javascript and he said lambda functions are the greatest innovation in computer science. Could you point me toward a resource that will explain why?
- shadowfox 15y agoI am sure there are better reads. But I found this one a decent back when I read it: http://www.cs.utexas.edu/~shmat/courses/cs345/whyfp.pdf http://www.cs.utexas.edu/~shmat/courses/cs345/whyfp.pdf A lot of what that particular paper talks about is applicable to other languages that have lambda expressions in them. Some of the examples in it does rely on lazy evaluation though. Laziness is usually encodable in most languages with lambdas. But most aren't lazy by default. Keep that in mind.
- jemfinch 15y agoSearch for (several) "Lambda the ultimate" papers.
- djm 15y agoHere's a list of them: http://library.readscheme.org/page1.html http://library.readscheme.org/page1.html
- nandemo 15y agoDoes he really call it an "innovation"? It would be more precise to say that the lambda function is a essential concept in computer science. Lambda functions -- which is just another name for anonymous functions -- are a basic element of lambda calculus, which is one of the foundations of computer science (predating electronic computers). In more practical terms, you need lambdas to have closures, currying and higher-order functions in general. Without that you don't have Lisp, ML, Haskell, etc. http://en.wikipedia.org/wiki/Anonymous_function http://en.wikipedia.org/wiki/Anonymous_function