<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On May 30, 2011, at 6:51 AM, Laurens Van Houtven wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">I remember Glyph saying something about how that could potentially change/break public API. I understand that reservation, but I don't see how it'd be that bad. Existing code that always immediately returns a resource would still work -- it would merely only use a part of the API it's allowed to use (in this case, it'd ignore the fact that it is allowed to return a deferred). Since a Deferred isn't an IResource, it wouldn't be a legal value to return now, anyway.<br></span></blockquote></div><br><div>The issue is with code that calls getChild, or getChildWithDefault, or any of the APIs that are listed on&nbsp;<a href="http://twistedmatrix.com/trac/ticket/3621">#3621</a>'s description, or anything derived from them. &nbsp;Any kind of resource wrapper will have to deal with these APIs, and there are a surprisingly high number of these kinds of things out in the wild.</div><div><br></div><div>Every public interface has callers and implementations, and both may exist out in the wild for just about any interface.</div><div><br></div><div>So, the problem is that we need a new interface.</div><div><br></div><div>The main other issue which affects IRequest is&nbsp;<a href="http://twistedmatrix.com/trac/ticket/288">#288</a>, so it may be worthwhile to land both of these branches at the same time. &nbsp;I've discussed this previously, but the general idea would be: create an integration branch, get #288 reviewed, merge it to the integration branch, get #3621 reviewed, merge it to the integration branch, and then merge the integration branch to trunk (since it would have no unreviewed commits). &nbsp;This would allow us to have only one new interface instead of two. &nbsp;(I am probably forgetting some other tickets which affect IResource and IRequest, others should feel free to chime in.)</div><div><br></div></body></html>