I was reading “JavaScript: The Good Parts” and the author mentions that JavaScript is the first of the lambda languages to be launched.
JavaScript’s functions are first class objects with (mostly) lexical scoping. JavaScript is the first lambda language to go mainstream. Deep down, JavaScript has more in common with Lisp and Scheme than with Java. It is Lisp in C’s clothing. This makes JavaScript is remarkably powerful language.
I didn’t get what is a lambda language. What are the properties of such a language and how is it different from languages like Java, C, C++ and Php?
I’ve never heard anyone use the term “lambda language,” and the only plausible definitions I can think of would exclude JavaScript as “the first.”
That said, I suspect he may mean either:
functionsyntax in JavaScript; this is writtenlambdain many languages, hence possibly “lambda languages.”Both usages are derived from the use of the greek letter lambda to denote function abstraction in the lambda calculus, the model of computation devised by Alonzo Church and upon which functional programming is based.
Edit: looked at Google Books result—“first to go mainstream”; well, that’s arguable. I’d put forward that LISP was at one point at least reasonably mainstream. It’s a fair point though, JavaScript’s semantics are directly inspired by Scheme and it certainly reached a larger audience than any other language that can make similar claims.