←back to thread

110 points jackdaniel | 4 comments | | HN request time: 0.618s | source
Show context
adamddev1 ◴[] No.44972696[source]
Ah, in an alternate world where Brendan Eich wasn't pressured by his superiors to make JS more Java-like, we could have had something like this as very normal.

I wonder how much faster that would have pushed the world into FP ideas. While sometimes I prefer the bracket/C syntax, I wonder how things would have evolved if JS was a lisp originally. Instead of things moving to TypeScript, would they be moving to something like typed Lisp or OCaml, or PureScript ?

replies(5): >>44973351 #>>44973702 #>>44976138 #>>44976751 #>>44977298 #
1. sdsd ◴[] No.44977298[source]
I wonder if, in that world, Lisp would be the boring corporate language, and HN would dream of a world where object orientation (which is clearly superior) never had a chance to leap from academia to the mainstream, and hackers post their niche flavors of Java and Smalltalk here.
replies(2): >>44977934 #>>44985269 #
2. jjtheblunt ◴[] No.44977934[source]
this article discussing how closure creation is disguised OO (and vice versa) might interest you.

https://wiki.c2.com/?ClosuresAndObjectsAreEquivalent

replies(1): >>44978147 #
3. Jtsummers ◴[] No.44978147[source]
Even discussed here a couple times:

https://news.ycombinator.com/item?id=33676959 - November 2022, 64 comments

https://news.ycombinator.com/item?id=9363635 - April 2015, 45 comments

4. arethuza ◴[] No.44985269[source]
Well, that world would also have CLOS - maybe the AMOP would be treated with the same reverence as the GoF design patterns book... ;-)