3 ms·
JavaScript is, probably somewhat surprisingly, a pretty LISP-y language, tho without the parentheses.
by aeorgnoieang 7y ago
JavaScript is, probably somewhat surprisingly, a pretty LISP-y language, tho without the parentheses.
- btxxa 7y agoYou mean modern JS, no?
- aeorgnoieang 7y agoNo, even the original language was pretty LISP-y.
- lioeters 7y agoFor others curious about this possible connection, here's Douglas Crockford on the LISPiness of JavaScript. The Little JavaScripter https://www.crockford.com/little.html https://www.crockford.com/little.html
- debug-desperado 7y agoLispy in the "processing lists" is easy and natural sense, but not in the more powerful "homoiconicity=code is data and data is code" sense.
- aeorgnoieang 7y agoYou're right about the 'homoiconicity' but there's more LISP-iness to JavaScript beyond just "processing lists" too.
- kbp 7y agoWhen people say that, they mostly just mean that it has lexical closures, I think.