on a side note: what's the limitation that prevent...
# announcements
d
on a side note: what's the limitation that prevents reified type arguments to be used in a
catch
? if that were possible, you could have a slightly safer version (only catching exceptions that you expect):
Copy code
inline fun <T, E : Throwable> tryy(body: () -> T): T? = try { body() } catch (e: E) { null }