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

I think they solved the problem by not supporting multiple inheritance, instead supporting interfaces and/or traits. But also "composition over inheritance" pretty much won, thankfully imho.



When in doubt look to CLOS.


Mixins via inheritance is a sweet pattern that I miss in C# sometimes.


C# has default interface implementations now, that can be used to create mixins...

https://learn.microsoft.com/en-us/dotnet/csharp/advanced-top...


Yeah I sometimes use them but they don’t cover all the cases. I’m waiting for roles/extensions to see if I can achieve a similar result.

https://github.com/dotnet/csharplang/discussions/5496




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

Search: