
There are various ways to handle errors in programming languages: 3r33371.
standard exceptions for many languages (Java, Scala and other JVM, python, and many others) 3r3105.
status codes or flags (Go, bash)
various algebraic data structures, the values of which can be both successful results and error descriptions (Scala, haskell, and other functional languages) 3r3105.
Exceptions are used very widely, on the other hand they are often said to be slow. But opponents of the functional approach often appeal to performance. 3r33333.
Recently, I have been working with Scala, where ...