3 ms·
It seems like that the author by using JSX to express code directly as an AST re-invented LISP? See Greenspun's tenth rule[1]. [1]: https://wiki.c2.com/?Greens
by lennoff 1y ago
It seems like that the author by using JSX to express code directly as an AST re-invented LISP? See Greenspun's tenth rule[1].
[1]: https://wiki.c2.com/?GreenspunsTenthRuleOfProgramming https://wiki.c2.com/?GreenspunsTenthRuleOfProgramming
- danabramov 1y agoSort of! My impression is that LISP is a little more powerful than what we're building up in the article. I wanted to focus on a few specific aspects (like first-class cross-environment imports and serializing continuations) but I'd ofc expect all of that to be expressible in LISP.
- lennoff 1y agoIt's fun to theorize about an alternate universe where JavaScript has a LISP-like syntax (Brendan Eich originally wanted "Scheme in the browser"[1], so this isn't so far-fetched!). Indeed, `interpret` sounds like a LISP macro that can "partially evaluate" code (so someone else, ie. the browser can continue to evaluate it). [1]: https://brendaneich.com/2008/04/popularity/ https://brendaneich.com/2008/04/popularity/