How do Promises Work?
robotlolita.me
How do Promises Work?
1–10 of 91 posts
Re: How do Promises Work?
#2Re: How do Promises Work?
#3Re: How do Promises Work?
#4Re: How do Promises Work?
#5Nicely done, thanks! Still, having to explain a concept as simple as eventual computation reinforces my belief that promises as a whole is broken, and should be done in something that looks like synchronous code with some help of the underlying runtime. (And no, ES7's async is not good enough for me here)
Asynchronous execution isn't an unfortunate design choice to be papered over; better to make it as easy as possible to learn and work with.
Re: How do Promises Work?
#6They abide by the beautiful monadic laws.
Re: How do Promises Work?
#7Nicely done, thanks! Still, having to explain a concept as simple as eventual computation reinforces my belief that promises as a whole is broken, and should be done in something that looks like synchronous code with some help of the underlying runtime. (And no, ES7's async is not good enough for me here)
Re: How do Promises Work?
#8Nicely done, thanks! Still, having to explain a concept as simple as eventual computation reinforces my belief that promises as a whole is broken, and should be done in something that looks like synchronous code with some help of the underlying runtime. (And no, ES7's async is not good enough for me here)
At least that's how it's always felt when I've used it for anything non-trivial yet well within its typical set of use cases.
Re: How do Promises Work?
#9Nicely done, thanks! Still, having to explain a concept as simple as eventual computation reinforces my belief that promises as a whole is broken, and should be done in something that looks like synchronous code with some help of the underlying runtime. (And no, ES7's async is not good enough for me here)
i love elixir actors / golang goroutines, since i don't have to give any special treatment to async operations.