Proposal: Automatic Resource Management (original) (raw)

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


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

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.

Agreed.

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



More information about the coin-dev mailing list