4 ms·
At some point I translated this demo into es6 if anyone's interested [0]. The focus was really on writing the cleanest idiomatic es6 I could (at the time :)).
by djtriptych 3y ago
At some point I translated this demo into es6 if anyone's interested [0].
The focus was really on writing the cleanest idiomatic es6 I could (at the time :)). Check out the tests to see how far I got [1]
Pretty fun exercise =)
[0]: https://github.com/djtriptych/es6-lisp https://github.com/djtriptych/es6-lisp
[1]: https://github.com/djtriptych/es6-lisp/blob/master/test/lisp.test.js https://github.com/djtriptych/es6-lisp/blob/master/test/lisp...
- actionfromafar 3y agoIt's a fun thing to try, since Javascript almost was to be a Lisp at inception!
- djtriptych 3y agoSomeone once said Javascript is a "Scheme-like language with C-like syntax". Always loved that and ashamed I can't remember the original author of the quote. Not Crockford... Maybe Michael Fogus?
- actionfromafar 3y agoNot sure, but Brendan Eich originally wanted to just put Scheme in the Netscape browser but his bosses wanted something with a Java like syntax. (I looked at Wikipedia for reference and it matches my memory of older sources.)
- patrickmay 3y agoEvery time I'm reminded of that I get annoyed thinking of how much better the web could have been.
- throwaway87651 3y agoCrockford: "Lisp in C's Clothing" https://www.crockford.com/javascript/javascript.html https://www.crockford.com/javascript/javascript.html
- BrendanEich 3y agoThe Java deal killed any Scheme in the browser I might have done in ten days in May 1995. Almost 29 years ago!