News for hackers. Stuff that matters.
Re:Feature request for JavaScript: omit catch by dragonwriter on Saturday April 17, 2021 @02:44PM (#26846438)
Since

  try {
    ...
  } catch(err) {}
does that, is clear and explicit, and doesn’t make no-catch mean something different than it does in

  try {
    ...
  } finally {
    ...
  }
I think “no 'catch' as empty 'catch' when there is no 'finally'” is just unnecessary inconsistency for no meaningful gain.

There are no comments on this comment yet.