On 17 April 2012 22:35, Jussi Kalliokoski <jussi.kallioko...@gmail.com> wrote: > 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 */ }
Silent catch-alls like that are almost always bad code. I think the language rather shouldn't encourage this pattern with extra convenience. /Andreas _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss