3 ms·
Any half modern language has a syntax construct for it. Unfortunately Javascript is on it's way but not there yet. I could explain it, but it's already describ
by valenterry 6y ago
Any half modern language has a syntax construct for it. Unfortunately Javascript is on it's way but not there yet.
I could explain it, but it's already described here better than I could: https://gist.github.com/MaiaVictor/bc0c02b6d1fbc7e3dbae838fb1376c80 https://gist.github.com/MaiaVictor/bc0c02b6d1fbc7e3dbae838fb...
(scroll to "do-notation")
- robertlagrant 6y ago> Now everything is good and JavaScript is great again, yet I wonder why it took so long Have you read it? It's saying Javascript has something like that.
- valenterry 6y agoNo it's not. It is saying Javascript has asnyc/await which is just a specialization of the more general monad-o-syntax (or however you want to call it). And that is precisely what I meant.
- robertlagrant 6y agoThe article likes them; you said they're a mistake.