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

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: