Remix.run Logo
▲ boxed 3 hours ago

> given JavaScript was originally intended to be a LISP too.

Isn't that basically just apocryphal handwaving? Javascript doesn't look like a lisp in any way, not syntactically obviously, but not behaviorally either. To say that he aimed for a lisp with C ish syntax either means he failed extremely bad, or that he thought lisp was shit.

▲masklinn 3 hours ago | parent [-]

It's a touch more complicated but according to Brendan Eich[0]

- he was originally hired to "do scheme", management believed they needed to embed a programming language and he was sold / believed that was an option

- by the time he got moved to the client and could work on scripting, Netscape was trying to get Java in Navigator (for the browser components), and management mandated a java-ish language for frontend scripting

- Eich got first-class functions from Scheme, and Self prototypes as an implementation detail to get an object model, as well as java's Date API and the primitive/object split

[0] https://brendaneich.com/2008/04/popularity/