Typeclass encoding in Swift | Hacker News Reader