Hacker News new | ask | show | jobs
by AyanamiKaine 211 days ago
I really like the idea of role based programming / mixins. I think it does not get enough attention.

[1]I know only of some programming languages that even call it roles.

To be honest I always get confused by the difference between interfaces and roles. For me it was always something like an interface/behavior that can be mixed in at runtime.

[1]https://docs.raku.org/language/objects#Roles