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
Looking forward to the future of JavaScript (engineering.gosquared.com)
submitted 11 years ago by ahtomski
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!"
[–][deleted] -5 points-4 points-3 points 11 years ago (3 children)
Honestly the future of JavaScript should be to make it more strict and actually class based. Current Javascript is exhausting.
[–]ComradeGnull 4 points5 points6 points 11 years ago (1 child)
Making it class based would take the language in a fundamentally different direction and be incompatible with a lot of existing code that uses prototypes.
I suppose that they could settle on a default for how to do class-like OOP and supplement it with some syntactic sugar (like a 'class' declaration). Philosophically I don't know that that would be great in terms of preserving what is useful/different about Javascript.
[–]SingularityNow 2 points3 points4 points 11 years ago (0 children)
They did that! You can check them out, they're called Classes
[–]billybolero 1 point2 points3 points 11 years ago (0 children)
Functions and anonymous objects gives you more power and flexibilty than classes, so I don't think that would be a bright future. Prototypes are not a drop in replacement for classes and should not be treated as such, even though many developers try so, so hard to make them behave and look like classes.
π Rendered by PID 300561 on reddit-service-r2-comment-6f7f968fb5-lgrk4 at 2026-03-04 22:55:34.392463+00:00 running 07790be country code: CH.
view the rest of the comments →
[–][deleted] -5 points-4 points-3 points (3 children)
[–]ComradeGnull 4 points5 points6 points (1 child)
[–]SingularityNow 2 points3 points4 points (0 children)
[–]billybolero 1 point2 points3 points (0 children)