News for hackers. Stuff that matters.
Re:JavaScript Promises in Wicked Detail by spion on Wednesday April 30, 2014 @06:25PM (#7676883)
Maybe it isn't that unreasonable. But personally I do like guarantees, and in a stateful language I especially like guarantees about execution order.

If these guarantees can be offloaded to a library then thats really great, as I don't have to keep them in mind anymore, freeing my brain to think about the specific problem I'm trying to solve. One less thing to check for when debugging too.

There is also the bonus feature that stack overflows wont happen, which enables liberal use of recursive promise functions. (On the other hand, memory usage might still explode, so its not quite that easy... :D)

Re:JavaScript Promises in Wicked Detail by lhorie on Thursday May 01, 2014 @08:16AM (#7679284)
Those are good points. So far this approach hasn't been a problem w/ Mithril. If it turns out to be a bad idea down the road though, it can always be changed to conform w/ A+