Does Scala even need the `try` keyword, and must `catch` be a keyword? I'd be happy to call `.catch(partialFunction)` directly on an expression or code block. It could be implemented as an extension method.
Scala 3 could inline it, but Scala 2 would need an additional allocation and stack frame (or two...).
-
-
Or a macro

-
But we can't change it in Scala 2 anyway.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.