DEV Community

Discussion on: Why interface default implementations in C# are a great thing

610yesnolovely profile image
Harvey Thompson • Edited

Default implementations for C# is a good compromise, as you say, for providing traits/multiple inheritance in a sensible manner.

There's some other nice features in C# 8.0 - I use a lot of different languages and rate C# pretty high up on the list of ones I prefer to use. Interesting to see C# 8.0 fixing nullability properly, but in a backwards compatible way - I think any language from now on should do this right, right from the start though.

I've not seen (though it may be a thing) Abstract Type Members in C# - a very useful feature, particularly with traits, something I miss on occasion in languages that don't have it.