Intro to Functional Error Encoding in Scala

By Mark Canlas

Elevator Pitch

Nulls. Exceptions. We’ve all been there. But what’s the alternative? Lucky us, Scala gives us three solutions out of the box. Learn how to be more functional about handling your errors. There might even be monads!

Description

Nulls and exceptions are common tools for encoding error handling through Java code, but they can be challenging to manage. Fortunately, Scala’s standard library offers more functional solutions to encoding error scenarios. Learn about how to use Option, Try, and Either.

Notes

As long as there are Scala developers who write new code that returns null or throws exceptions, there will be a need for a talk like this. This talk is foundational for more advanced functional solutions like IO monads.