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 believe the main reason is that it interest poorly with precedence.
-
Ah, right... I think there's a mistake in your original tweet which was confusing me! I'm not sure if it would be categorically worse, so much as it would become less clear to existing users (familiar with the current style) what the scope of the `try` is.
End of conversation
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.