3 ms·
You can't do that. It would require a language change, to make try/catch blocks expressions.
by nradov 17y ago
You can't do that. It would require a language change, to make try/catch blocks expressions.
- twir 17y agoHeh, I didn't think so. ;)
- eldenbishop 17y agoYou can sort of do this in Groovy. def val = {try { 1 } catch(ex) { 2 }}.call() assert(1 == val)