SimonRichardson / funk

Haxe FP Library
Other
35 stars 5 forks source link

Promises as chainable then, when and but methods #11

Closed SimonRichardson closed 11 years ago

SimonRichardson commented 11 years ago

Consider this : http://domenic.me/2012/10/14/youre-missing-the-point-of-promises/

SimonRichardson commented 11 years ago

Two issues, try...catch is not implemented for each, this should really work so that we can fail the deferred. Also we have to use a _ before then, but, when as the using doesn't override the Promise method, shame really. See if this can be resolved with moving the imports/using around?