On Sat, Apr 4, 2009 at 5:41 PM, James Strachan <[email protected]>wrote:
> > On 04/04/2009, Dhanji R. Prasanna <[email protected]> wrote: > > On Sat, Apr 4, 2009 at 10:07 AM, James Strachan > > <[email protected]>wrote: > > >> Would it be so bad for a Scope to have an iterate() method so tools & > >> frameworks could iterate through all the objects that have been > >> created in a scope? > > > > > > This would make Scope source incompatible with all Guice 1.0 and > > transitional code. =( > > How would a Scope optionally implementing Iterable cause a problem? If we add a method to Scope it will break a lot of existing code out there that doesn't implement that method. Not to mention binaries that are compiled against the current version of Scope. j.u.Collection doesn't allow you to optionally implement a method, it just allows you to throw exceptions in methods that are not supported in a particular implementation. Dhanji. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---
