nwh
06/19/2018, 10:42 PMcatch could receive errors as a parameter, like this:
try { ... } catch { it.printStackTrace() }
I assume this would be a breaking change, but just allowing it to receive a parameter wouldn't be (no implied it):
try { ... } catch { err -> ... }
If both of these are breaking changes, maybe the syntax could be changed to handle instead of catch, and the try statement would have to have one or the other. The current syntax of catch drives me nuts.Ruckus
06/20/2018, 12:49 AMdeviant
06/20/2018, 8:58 AMtry { ... } catch { npe:NullPointerException?, so:StackOverflowException? -> ... }gildor
06/20/2018, 9:26 AMgildor
06/20/2018, 9:27 AMgildor
06/20/2018, 9:28 AMgildor
06/20/2018, 9:29 AMTry { }.catch { err -> doSomething(err) }gabrielfv
06/20/2018, 1:59 PMTry<NullPointerException> { ..., ... catch(NullPointerException::class) { err -> ...?gildor
06/21/2018, 1:21 AMAndreas Sinz
06/24/2018, 5:42 PM