Is ECMAScript a dialect of Lisp?

"JavaScript has much in common with Scheme. It is a dynamic language. It has a flexible datatype (arrays) that can easily simulate s-expressions. And most importantly, functions are lambdas. Because of this deep similarity, all the functions in [recursive programming primer] 'The Little Schemer' can be written in JavaScript."
— Douglas Crockford

An interesting discussion on SO (https://stackoverflow.com/questions...)

  • 0
    ES doesn't have TCO and only Safari implements it so you need to construct an incredibly inconvenient trampoline to make recursion efficient.
  • 0
    @lbfalvy 👀 Oh no.
Add Comment