try without catch or finally

Domenic Denicola domenic at domenicdenicola.com
Tue Apr 17 13:43:21 PDT 2012


Tangentially related: https://github.com/kriskowal/q/wiki/On-Exceptions

________________________________
From: es-discuss-bounces at mozilla.org [es-discuss-bounces at mozilla.org] on behalf of Nebojša Ćirić [cira at google.com]
Sent: Tuesday, April 17, 2012 16:39
To: Jussi Kalliokoski
Cc: es-discuss
Subject: Re: try without catch or finally

It's easy to forget to catch in cases you wanted to.

Maybe adding a new keyword:

try {
...
} drop;

17. април 2012. 13.35, Jussi Kalliokoski <jussi.kalliokoski at gmail.com<mailto:jussi.kalliokoski at gmail.com>> је написао/ла:
I'm not sure if this has been discussed before, but is it a terribly bad idea to make catch/finally optional for a try block?

There's a lot of code like this out there:

try { /* something here */ } catch (e) { /* nothing here */ }

Cheers,
Jussi

_______________________________________________
es-discuss mailing list
es-discuss at mozilla.org<mailto:es-discuss at mozilla.org>
https://mail.mozilla.org/listinfo/es-discuss




--
Nebojša Ćirić
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120417/414b43b6/attachment.html>


More information about the es-discuss mailing list