How to do polymorphism in a process-based world

You should probably look into Elixir Protocols.