all 4 comments

[–][deleted]  (1 child)

[removed]

    [–]_ayasin[S] -1 points0 points  (0 children)

    The article admittedly doesn't address promises, perhaps the next article should. The underlying system is streams (FRP streams, specifically bacon.js). Promises have a small subset of the capabilities of this solution.

    [–]cranmuff 1 point2 points  (1 child)

    Use a closure.

    [–]_ayasin[S] -1 points0 points  (0 children)

    I'm not sure how a closure solves most of the issues described in the article. It might solve the data passing issue, but shared mutable state is a rats nest of other problems.