Re: Alternative way to achieve cancelable promise

2016-10-19 Thread Bergi
Kagami Rosylight wrote: I want to find a way to replace cancellation token in the current [stage 1 cancelable promise proposal](https://github.com/tc39/proposal-cancelable-promises) with an alternative way which does not require passing an additional parameter. You're not the only one who

Re: A Result class for functions that may return errors

2016-10-19 Thread Isiah Meadows
Inline On Tue, Oct 18, 2016, 18:23 Josh Tumbath wrote: > The issue with that, though, is returning `undefined` is really no > different to returning `null` in a sense. Null is considered bad because > errors can crop up from not handling null as a return value from a >