Brendan Eich (2013-05-25T19:35:35.000Z)
github at esdiscuss.org (2013-07-12T02:27:20.825Z)
Sam Tobin-Hochstadt wrote: > This is twice as many methods on promises themselves: `then` vs `then` > and `chain`. Oh, *methods* :-P. I'm an FPer at heart, can you tell? > Many more people will consume the promise datatype than > produce it, which mean that this does double the methods that > consumers need to know about. Either they need to know about one method and the {value: x} hackaround, which is needed sometimes; or they need to know about two methods, then and chain. Which is worse? You could argue the {value: x} hackaround is rarely needed, but the same argument can sell chain too. I just don't see how bean-counting is the right way to assess here. The problem {value: x} solves is real, no one dismisses it. In arguing about how to enable developers to solve it, we should count all the beans and try to assign weights to them. My weighted counting favors a second method over a manual wrapping pattern. Tab made this point already in arguing that then + chain is not a union of designs, any more than then + {value: x} is unioning in the bad committee-designed sense. From everything you wrote, though, it sounds like TC39 people just bean-counted methods. Boo... /be