home articles notes projects github twitter email
In reply to: http://anttih.com/articles/2017/12/25/promise-is-the-wrong-abstraction
I mainly talked about composition “in the small”, but there’s also abstraction “in the large” where you build new abstractions on top of Tasks. Since Tasks are pure, there are no limits to how you can compose them.
With Promises there are no such guarantees. You have to be very careful to not “leak” side effects. Side effects are contagious while pure data always composes with other pure data.
December 25, 2017 — Antti Holvikari @antti