-

@ Anthony Accioly
2025-06-03 17:36:13
Kotlin and Go couldn't be approaching their error handling pains more differently.
Go: https://go.dev/blog/error-syntax
Kotlin: https://medium.com/@internetcreationist/exploring-rich-errors-in-kotlin-a-game-changer-from-kotlinconf-2025-ea11ae23b585
TL;DR: While Kotlin is getting rich errors, Go is getting... nothing. And please stop asking for it, the community clearly won't come to a consensus.
Like it or not, `if err != nil` is here to stay. Don't get me wrong, I really like Go and have even been defaulting to it for a lot of my own projects. But when you work with Kotlin on a daily basis, Go codebases start to feel like C with a few extra goodies and polished corners.
#GoLang #Kotlin #ErrorHandling #LanguageDesign #ProgrammingLanguages #DevThoughts