Is ECMAScript really a dialect of Lisp?

后端 未结 9 1575
攒了一身酷
攒了一身酷 2020-12-13 12:24

A friend of mine drew my attention the welcome message of 4th European Lisp Symposium:

... implementation and application of any of the Lisp dialect

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-13 12:58

    Yes, it is. Quoting Crockford:

    "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 of the functions in [recursive programming primer] 'The Little Schemer' can be written in JavaScript."
    http://www.crockford.com/javascript/little.html

    On the subject of homoiconicity, I would recommend searching that word along with JavaScript. Saying that it is "not homoiconic" is true but not the end of the story.

提交回复
热议问题