Proposal: Automatic Resource Management
Reinier Zwitserloot
reinier at zwitserloot.com
Mon Mar 9 11:09:11 PDT 2009
Vilya, you can check the entire history of this mailing list over at:
http://mail.openjdk.java.net/pipermail/coin-dev/
Afaik, the latest version of the ARM proposal is here. Assuming Josh
turned auto-republish on, this URL should always point at the latest
version:
http://docs.google.com/Doc?id=ddv8ts74_0vnstdfdh
AutoClosable idea sounds good to me too, FWIW.
--Reinier Zwitserloot
On Mar 9, 2009, at 18:55, Vilya Harvey wrote:
> 2009/3/9 Tim Peierls <tim at peierls.net>
>
>> And yes, this will frustrate designers of new resource-ish types
>> who want
>> ARM support but for whom "close" is not at all the appropriate
>> verb. But
>> designers of new types are at least free to design abstractions
>> that aren't
>> as delicate in their clean-up requirements as the current crop of
>> Closeables.
>
>
> Just as a data point, the equivalent to this in Python - the with
> block -
> uses the method names __enter__ and __exit__ (you can ignore the
> double
> underscore, that's just a Python convention).
>
> I joined this mailing list too late to see the proposal when it was
> posted;
> does it include calling any kind of setup method on entering the
> block? If
> not, this may be worth considering as well?
>
> BTW, is there anywhere online where I can read the proposal?
>
> Vil.
>
More information about the coin-dev
mailing list