Added: C# Language Design Notes for Mar 21, 2017 #641
Replies: 7 comments
-
@DavidArno Weren't you just asking for these discussion issues for each meeting notes? |
Beta Was this translation helpful? Give feedback.
-
Yes, I did and I very much appreciate Mads posting them. Clearly my joking about how this subject probably didn't need more debate missed the mark though. Through my attempts at challenging the team, It appears that I have poisoned my own position to such an extent that even a quip about such things is seen as me being negative. It's probably long past time for me to move on therefore. |
Beta Was this translation helpful? Give feedback.
-
😢 Not what I intended. But perhaps there is a chance you could just avoid the perception by being positive elsewhere? Unless of course you don't want to be. |
Beta Was this translation helpful? Give feedback.
-
@DavidArno these discussion issues are indeed a good idea. Thanks for suggesting it! |
Beta Was this translation helpful? Give feedback.
-
Outsider views klaxon I love composition, when it is used pragmatically, so I'm all for traits. That said, why must this capability be implemented as default What about a trait Positionable
{
Point getPosition() { // impl }
} Perhaps this is pedantic, but I feel a specific keyword would address this responsibility more clearly. In this case, another word to compose types by class Alien composedof Positionable, Renderable |
Beta Was this translation helpful? Give feedback.
-
The primary motivation of the feature being to allow for the evolution of existing interfaces by adding new non-required (default) methods. As such it doesn't make a lot of sense to require an interface to have to become something else, even if that something else is just an interface by some other name. The fact that default method implementations allows for a form of traits is really just a bonus, which is why the LDM is exploring those avenues further. |
Beta Was this translation helpful? Give feedback.
-
That seems logical; I didn't think of it that way as I'm only using C# with .NET Core for new codebases. Thanks for the reply! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
C# Language Design Notes for Mar 21, 2017
Discussion of default interface member implementations, based on this guided tour.
this
Please discuss.
Beta Was this translation helpful? Give feedback.
All reactions