Hacker News new | ask | show | jobs
by miles7 3451 days ago
In addition to Dylan, Julia also allows multiple dispatch via generic functions.

I have found this approach to multiple dispatch leads to code that's much easier to reason about and maintain. My use case is a tensor library where the tensors have a single interface but various storage backend types, which 'interact' with each other. It doesn't make sense to define these interactions through methods belonging to only one class or the other.

1 comments

Also R via the S4 OOP system, which was directly inspired by Dylan