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.
-
-
I need to play around. Don't trust there is a lawful conversion for any expr. For ex : (throw new Exception).catch(???)
-
That would work exactly the same as try { throw new Exception() } catch { ... }
- 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.