News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by BenoitEssiambre on Saturday May 15, 2021 @02:58PM (#27167892)
I really wish when things moved to async/await, that they would have gotten rid of promises like I proposed here: https://es.discourse.group/t/callback-based-simplified-async...

As it stands it's layers of caching, state machines and complexity.

Re:Modern Javascript: Everything you missed over the last 10... by Sephr on Saturday May 15, 2021 @07:16PM (#27169818)
Your proposal seems very reminiscent of the generator-based JavaScript async library I created back in 2010:

https://eligrey.com/blog/pausing-javascript-with-async-js/

Re:Modern Javascript: Everything you missed over the last 10... by Oddskar on Monday May 17, 2021 @12:17PM (#27185173)
It's building on top of something that developers should be using anyway; or at least have familiarity with. I'm quite glad they ended up going this route for that reason.