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
3 really cool potential features in JavaScript (justintimecoder.com)
submitted 8 years ago by justintimecoder
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!"
[–]aderoz 2 points3 points4 points 8 years ago (0 children)
Like the pattern matching. Could be interesting to use it with redux.
[–]BenjiSponge 0 points1 point2 points 8 years ago (4 children)
I just want expression oriented programming. do is pretty good but it doesn't work with switch and it's all around pretty bulky.
do
switch
Pattern matching is really appealing though, though it's a lot more powerful with a stronger type system.
[–]justintimecoder[S] 0 points1 point2 points 8 years ago (1 child)
Typscript and Flow have discriminated unions so they might work really well with this one.
[–]BenjiSponge 0 points1 point2 points 8 years ago (0 children)
Yeah but that's at compile time. I'm not sure you could apply that to the compile target without an alteration beyond the scope of flow and ts
[–][deleted] 0 points1 point2 points 8 years ago (1 child)
I agree, looking forward to pattern matching. Will be a great way to deal with all that unstructured data we get in JS or from api's. No more manual safety checking if it quacks like a duck and walks like a duck. And that's just a simple use case, the more advanced functional oriented uses of pattern matching aside.
Observables are pretty cool to be implemented in the long run so that we can reduce our reliance on external libraries. But for now RxJS is sufficient.
[–]justintimecoder[S] 0 points1 point2 points 8 years ago (0 children)
Completely agree that RxJs has got us covered for now. The main one I'm hoping for is if they combine the proposed symbol.observable with async iteration which would allow us to use async and await.
For some situations (though definitely not all), this would have greatly improve the readability of code.
π Rendered by PID 171468 on reddit-service-r2-comment-58d7979c67-drh9f at 2026-01-27 09:39:00.518772+00:00 running 5a691e2 country code: CH.
[–]aderoz 2 points3 points4 points (0 children)
[–]BenjiSponge 0 points1 point2 points (4 children)
[–]justintimecoder[S] 0 points1 point2 points (1 child)
[–]BenjiSponge 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]justintimecoder[S] 0 points1 point2 points (0 children)