an operator for ignoring any exceptions
T.J. Crowder
tj.crowder at farsightsoftware.com
Mon Aug 14 05:48:20 UTC 2017
On Sun, Aug 13, 2017 at 6:21 PM, Hikaru Nakashima <oao.hikaru.oao at gmail.com>
wrote:
> I want you to tell me why dangerous to omit `catch`.
> Is that because, people abuse the syntax ?
"Dangerous" is a bit over-the-top, I was just reusing the word for parallel
construction.
But I prefer explicit to implicit. This:
```js
try { something; } catch { }
```
isn't that much longer than this:
```js
try { something; }
```
...and for me, having that glaring empty block there saying "You really
should do something here" is a good thing. :-)
-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170814/e1a15c21/attachment.html>
More information about the es-discuss
mailing list