Proposal: Automatic Resource Management

Neal Gafter neal at
Sun Mar 8 08:14:53 PDT 2009

On Sat, Mar 7, 2009 at 11:58 PM, Jeremy Manson <jeremy.manson at> wrote:
> I am aware Lock is an interface.  You wouldn't actually change the
> Lock interface, you would change the classes.  Just as they retrofit
> Iterable everywhere.

Iterable was retrofitted onto the collection interfaces as well as the
classes.  That's necessary to allow programmers to continue to program
against interfaces rather than concrete classes.  A proposal that
retrofits behavior on classes but not the related interfaces guides
programmers away from the preferred idiom of programming against an

More information about the coin-dev mailing list