Proposal: Automatic Resource Management (original) (raw)
Neal Gafter neal at gafter.com
Sat Mar 7 09:28:40 PST 2009
- Previous message: PRE-PROPOSAL: Source and Encoding keyword
- Next message: Proposal: Automatic Resource Management
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Feb 27, 2009 at 10:29 PM, Joshua Bloch <jjb at google.com> wrote:
try { localVar.close(); } catch(Exception #ignore) { }
Simply discarding exceptions seems wrong. As a practical matter, if I were to use a construct like this I would want the "ignored" exceptions to be logged so that we don't sweep programming errors under the rug.
- Previous message: PRE-PROPOSAL: Source and Encoding keyword
- Next message: Proposal: Automatic Resource Management
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]