News for hackers. Stuff that matters.
Re:From TypeScript to ReScript by skywal_l on Wednesday January 12, 2022 @04:25AM (#29904137)
Callback hell was before the introduction of Promises. Promises tried to abstract away the callback mechanism and it made things a little clearer, but you still had the pyramid effect of successive Promises.

Await/Async kind of streamlined all this.

Re:From TypeScript to ReScript by dsnr on Wednesday January 12, 2022 @05:44AM (#29904665)
I still somewhat prefer the readability of promises vs. await. I like the expressiveness of a then/catch as functions as opposed to try/catch blocks, which I‘ve always disliked. But I agree that await is more suitable for more complex scenarios.