Ѓорѓи Ќосев (2013-12-20T15:58:02.000Z)
domenic at domenicdenicola.com (2014-01-03T17:00:14.826Z)
On 12/20/2013 04:38 PM, Kevin Smith wrote: > Probably, but just for kicks, here's another solution: What will the new DOM APIs return? Regular promises or Borg promises? If they return regular promises, users will still need to know that they cant `return $.getJSON()` from within the callback of that DOM promise, because jQuery's 1.9 promise is just a thenable. If they return Borg promises, we're back to where we started: user `$.getJSON()`'s source code, tries to return parser that has a `.then` method for transformation chaining, gets subtle errors, author of parser library can't change method because it would break existing code, lint tool can't warn author about .then because it doesn't know if the author wants thenable assimilation or not. Also, users will have to be aware at all times what kind of promise they're interacting with. Sorry, I don't think this is better than convertableToPromise (which is assumed to be `true` when undefined)