Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can do that with explicit implementations just fine e.g. haskell type classes (and their less competent sibling rust traits).

It is, if anything, better: you can abstract over multiple third party types, and you’re not stuck with the interface they defined, so if you need to switch in the future you can.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: