Implementing union types in Scala | Hacker News Reader