Hacker News new | ask | show | jobs
by jroesch 4488 days ago
This is known as F-bounded polymorphism if you are interested in knowing more about this approach.