Programming Languages, Kotlin, Software Development, Computer Science, Compilers.
it had never thrown an exception. Compilers could ensure that every thrown exception is caught somewhere — Java does this already, although it ignores RuntimeExceptions. Personally I don’t think hacking try/catch blocks is a great way to implement context management, but it does go to show that