FunLand: Algebraic("Container") Data Types for Elixir - Prerelease

In Scala

  • Option is to deal with null values (contains some type T or null)
  • Either can be used to deal with errors, basically can be type A or B
  • Try is special type for error (contains Result or Error)

The Neophyte’s Guide to Scala Part 6: Error Handling With Try

The Neophyte’s Guide to Scala Part 5: The Option Type