by nh23423fefe · 2y ago · 0 comments
this enables the query you care about ageof(person, onday)
i like to think about types, not as isomorphic to some tuple but as the package of methods they support
interfaces are more important than classes, is the pithy exposition
But yes, you're correct that there are many different ways to model this. Which one is best for your particular use case depends on the details of the problem you're trying to solve.