Re: [fetch] Removed promise antipattern from code example (#227)

Ah yeah the [recursive promise chain memory problem](https://stackoverflow.com/questions/29925948/building-a-promise-chain-recursively-in-javascript-memory-considerations).
Imo, this flaw should be fixed in the spec and in implementations.
@domenic I'm all for advocating the proper pattern. Its use should be encouraged, and if that puts pressure on implementations to fix the leak then mission accomplished :-) The antipattern with `.then(resolve, reject)` also prevents propagation of cancellation and similar things.
@jakearchibald I found the semicolon style weird as well, but just didn't want to change anything here.
@annevk Is my full real name required there?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/227#issuecomment-192028668

Received on Friday, 4 March 2016 00:04:16 UTC