Hacker News new | ask | show | jobs
by richardxia 1360 days ago
Scheme has the lambda special form, predating Python by decades, and its version also allows for multiple parameters in a non-curried way. SICP served as a classical textbook in computer science for multiple generations of students, so I think that a lot of people's first introduction to lambdas as anonymous functions came from Scheme:

https://sarabander.github.io/sicp/html/1_002e3.xhtml#g_t1_00...

1 comments

And the use of the LAMBDA keyword goes all the way back to John McCarthy's original paper on Lisp from 1960:

https://archive.org/details/recursive-functions-symbolic-exp...

Wow wasn't aware of this long history.

My hot take for which I'm sure I'll get some hate is all languages should just include js-style arrow functions

Probably little hate, it's a long existing style. Haskell, Erlang, the entire ML line of languages, and probably many more have all used it since last century. It came from mathematical notation, and it is concise.