I think by "backing field" they just mean backing property. That confused me as well when reading through - if we're using strict language saying that everything is technically a "property" instead of a "field" then don't talk about fields in the same paragraph. Might be worth clarifying
v
voddan
05/21/2017, 11:05 PM
alexreidy: there is a difference between a
backing field
and
backing property
@maxim@alexreidy as @artemiy mentioned, backing field is the thing that we access via the
field
keyword. It is always hidden behind a property, so in a sense it is outside of the logical picture of Kotlin
On the other hand, backing property is a technique of using a private property together with a public property with custom setters. This is sometimes useful, but rare
So, the docs are correct, but indeed may need clarification. Feel free to contribute a change to docs on GitHub if you think it is needed