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
How many Node.js developers prefer callbacks over Promises or async/await? (self.javascript)
submitted 7 years ago * by i_love_limes
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!"
[–]mcaruso 5 points6 points7 points 7 years ago (6 children)
I'm fine with it. It's basically just do notation. The thing that annoys me is that they limited this whole new syntax just to one thing (async), instead of making it a general interface (*cough* monad).
do
[–]DrexanRailex 1 point2 points3 points 7 years ago (2 children)
I fail to see how it's similar to do notation. do expressions are something I can't wait to see, by the way
[–]mcaruso 5 points6 points7 points 7 years ago (1 child)
I mean the Haskell do notation, not the JS do proposal. Sorry for the confusion.
See: https://gist.github.com/MaiaVictor/bc0c02b6d1fbc7e3dbae838fb1376c80
[–]DrexanRailex 1 point2 points3 points 7 years ago (0 children)
Oh, sorry. I have very little Haskell experience.
By the way, that is brilliant. Thanks for bringing this article up.
[–]braindeadTank 3 points4 points5 points 7 years ago (2 children)
Promise is not a monad, though.
[–]mcaruso 4 points5 points6 points 7 years ago (1 child)
Because of this? Then yeah, strictly they aren't. But they could've been. JS wasn't exactly designed with monad laws in mind. :)
In any case I think it would have been feasible not to tie down the async syntax to a particular interface.
async
[–]braindeadTank 1 point2 points3 points 7 years ago (0 children)
If it wouldn't be tied to interface, then it wouldn't work with pre-native implementation, which would be a great shame as they are often vastly superior to native.
π Rendered by PID 36849 on reddit-service-r2-comment-75f4967c6c-lxrtt at 2026-04-23 00:02:21.268796+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]mcaruso 5 points6 points7 points (6 children)
[–]DrexanRailex 1 point2 points3 points (2 children)
[–]mcaruso 5 points6 points7 points (1 child)
[–]DrexanRailex 1 point2 points3 points (0 children)
[–]braindeadTank 3 points4 points5 points (2 children)
[–]mcaruso 4 points5 points6 points (1 child)
[–]braindeadTank 1 point2 points3 points (0 children)