Set-theoretic types and new syntax for conditionals

Quick reaction before watching the video: other than the spelling, I’m not sure how the example above is different from:

def f(x) do
  case x do
    0 -> "A"
    1 -> "B"
  end
end

If I read the latter in a module, I might say the former when explaining that function to another person.

1 Like