Proposal: Automatic Resource Management (original) (raw)
Reinier Zwitserloot reinier at zwitserloot.com
Tue Mar 3 18:26:13 PST 2009
- Previous message: Proposal: Automatic Resource Management
- Next message: Proposal: Automatic Resource Management
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The new Disposable idea makes this proposal much cleaner, Josh. I like
it.
Neal, could you perhaps elaborate on the pain that Disposable is going
to cause? Insinuating that proposals are Bad Ideas without any
specifics whatsoever seems better suited to some sort of voting cycle.
On this mailing list it seems counter-productive to say the least.
--Reinier Zwitserloot
On Mar 4, 2009, at 03:08, Neal Gafter wrote:
Given all the gnashing of teeth over the fact that Closeable's close method throws IOException, I can only imagine the pain that Disposable.close() throwing Exception will cause.
On Tue, Mar 3, 2009 at 5:47 PM, Joshua Bloch <jjb at google.com> wrote: I have modified the proposal in light of Mark's example. The only change is that the Disposable interface is no longer parameterized. This eliminates the incompatibility noted by Neal; so far as I know, the revised proposal introduces no incompatibilities. It can be found here: http://docs.google.com/Doc?id=ddv8ts740vnstdfdh . Happy reading,
Josh
- Previous message: Proposal: Automatic Resource Management
- Next message: Proposal: Automatic Resource Management
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]