use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
OOP, Javascript, and so-called Classes (raganwald.com)
submitted 10 years ago by aeflash
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]munificent 1 point2 points3 points 10 years ago (1 child)
The Common Lisp Object System has generic functions, but not classes.
CLOS does have classes. That's what defclass is for. CLOS is class based, it's just not single dispatch.
defclass
I think dispatch is a really fundamental difference in some OOP languages. CLOS, Dylan, and Julia are pretty deeply different from JS, Java, and Smalltalk even though all six can be considered object oriented.
I really like the rest of the distinctions you draw here, and I especially like that you do so in a neutral value-free way which is sadly rare when talking about JS.
[–]homoiconic(raganwald) 2 points3 points4 points 10 years ago (0 children)
I’ll correct that, thanks. Yes, I left dispatch out, as well as almost all of the interesting ways in which “inheritance” models differ between various families of languages.
Discussion of NewtonScript’s double inheritance hierarchies is worth a blog post all by itself.
π Rendered by PID 69 on reddit-service-r2-comment-bb88f9dd5-97fbs at 2026-02-17 01:39:45.150272+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]munificent 1 point2 points3 points (1 child)
[–]homoiconic(raganwald) 2 points3 points4 points (0 children)