Proposal: Automatic Resource Management (original) (raw)

Neal Gafter neal at gafter.com
Sat Mar 7 09:28:40 PST 2009


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.



More information about the coin-dev mailing list