Proposal: Automatic Resource Management

Mark Reinhold mr at
Wed Mar 11 09:23:05 PDT 2009

> Date: Mon, 09 Mar 2009 13:51:24 -0400
> From: Tim Peierls <tim at>

> CloseableResource is good, too. I have a mild preference for AutoCloseable,
> because it leaves open the possibility of blessing other AutoXxx classes in
> the future.

Yes, that could prove to be a handy naming pattern in the long term.

> Maybe the name of the proposal is misleading, since not all resources can be
> managed automatically, just those that have a void close() method.


Thanks for the AutoCloseable idea; I like it a lot.

- Mark

More information about the coin-dev mailing list