4 ms·
Eh, I think you picked the wrong side of that comparison. JavaScript looks like C by virtue of age and influence. It's common to remark on a language being "C-
by musingsole 4y ago
Eh, I think you picked the wrong side of that comparison. JavaScript looks like C by virtue of age and influence.
It's common to remark on a language being "C-like"; not so much that a language is "JavaScript-like".
- AlmostAnyone 4y agoThis is not about the syntax (indeed that's C-like), but much more about the style of API. This style of API was basically invented in Node.js land and then carried over to other languages. And lots of JS-style syntax sugar has been added to the other languages to make it possible. If someone made a web app in C++, it used to be OOP heavy. There's no class declaration in sight here.
- TeMPOraL 4y ago> This style of API was basically invented in Node.js land and then carried over to other languages. You mean Lisp, and no surprise there, since JavaScript was supposed to be Scheme, except the commercial interests forced it to have Java-like syntax :).
- AlmostAnyone 4y agoI write some Common Lisp and while it's alike, this C++ API is much more similar to the JS API than to anything I've written in CL or Clojure. But yeah, I guess the basic idea is from Lisp.
- TeMPOraL 4y agoYes, I meant that in the sense of underlying idea, not the surface-level syntax.
- ly3xqhl8g9 4y agoIt was more or less a tongue-in-cheek snowclone based on the famous Arthur C. Clarke adage [1]. [1] https://en.wikipedia.org/wiki/Clarke%27s_three_laws#Variants_of_the_third_law https://en.wikipedia.org/wiki/Clarke%27s_three_laws#Variants...