Kotlin is a general-purpose language, designed to be well-fit for all kinds of software, including very large multi-million-LOC systems, where you simply cannot afford to have any kind of “fatal” error concept that brings down the whole system without a sane way to handle it. Just imagine what would happen if IntelliJ IDEA was crashing from time to time similarly to XCode because of some programming error in one of the plugins. So, the answer is no — there is no option to adopt a Swift-like error-handling approach in Kotlin.

Written by

Project Lead for the Kotlin Programming Language @JetBrains

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store