Feedback and comments on ARM proposal (original) (raw)

Joshua Bloch jjb at google.com
Fri Mar 20 17:22:15 PDT 2009


Jeremy, I don't think so; it would be used (almost) exclusively by the classes that implement its interface(s).

      Josh

On Fri, Mar 20, 2009 at 5:13 PM, Jeremy Manson <jeremy.manson at gmail.com>wrote:

Does it matter that java.lang.auto wouldn't be auto-imported?

Jeremy On Fri, Mar 20, 2009 at 2:08 PM, Tim Peierls <tim at peierls.net> wrote: > How about using a special package -- java.lang.auto, say -- with initially > only one or two interfaces -- AutoCloseable and AutoDisposable, say -- and > word the ARM proposal so that only subtypes of interfaces with a single, > parameterless method that are declared in this special package are allowed > in the ARM try-initialization? > > The idea here is to remove the decision about which clean-up methods to > support from the current proposal and make it a library design issue. > > --tim > >



More information about the coin-dev mailing list