logoalt Hacker News

anon291today at 12:46 AM0 repliesview on HN

This is the standard type class approach. Haskell does the same thing.