Programming with Result: Motivation

Discussing all the problems with exceptions, how they’re GOTO in disguise, break basic OOP principles and what we actually use them for. A teaser of something better than exceptions.

Gabriel Shanahan
5 min readOct 10, 2022

— — — — — — — — — — — — — — —

THE CURRENT VERSION OF THIS ARTICLE IS PUBLISHED HERE.

— — — — — — — — — — — — — — —

Tags: #FUNDAMENTAL CONCEPT

This article is part of the Kotlin Primer, an opinionated guide to the Kotlin language, which is indented to help facilitate Kotlin adoption inside Java-centric organizations. It was originally written as an organizational learning resource for Etnetera a.s. and I would like to express my sincere gratitude for their support.

It is recommended to read the Introduction before moving on. Check out the Table of Contents for all articles.

Before we start, let me say that the following articles about Programming with Result are, in my view, among the most important ones in the entire set of materials — few, if any, other sections have the potential to more profoundly impact the way you design and write code. In effect, this…

--

--