News for hackers. Stuff that matters.
Re:JavaScript Illustrated: Promises by thymanl23 on Friday October 11, 2019 @09:49AM (#21224295)
Check out "The Problem with Promises in JavaScript" [0] for some gotchas with the design of js promises.

[0] https://dev.to/craigmichaelmartin/the-problem-with-promises-...

Re:JavaScript Illustrated: Promises by afiori on Friday October 11, 2019 @10:01AM (#21224421)
From that link I quite like the solution of giving two arguments to the then. It feels very algebraic.