I stumbled upon this article, which is devoted to chips, which with high probability will be added to the new version of the language.

Interface members with default implementation

What is the meaning of this innovation? Unless in this case we will not return to the rhombic inheritance from which the shirts repudiated? + Interfaces will be even closer to abstract classes.

  • 2
    Records is one of the most anticipated changes, at least by me. This will allow you to write read-only types without idiocy with all sorts of Builder and other perversions. - ixSci Nov.
  • Article in Russian: habr.com/post/413065 - Andrey NOP
  • @AK maybe. However, the question is quite simple, that would give a few short answers and it seems to me to split it unnecessarily. Also, everything is united under single headings => who will search for answers, will find this question. - iluxa1810
  • @AK, ok rendered to 3 questions. - iluxa1810

1 answer 1

  1. Interface Problem

He wants to know how to use it.

It will be necessary to specify / select the desired implementation.

  1. Caller Argument Expression

It turns out so. Convenient for external validation. Here you can see why they came up.

  1. Records

This is more likely for models that simply store. The only functionality that is needed from them is a comparison. And with this Records cope. Examples and motivation of developers.


Simply put, all this is for code reduction.