Replies: 1 comment 3 replies
-
did I understand this correctly, so the backing field will always be nullable no matter what the return type of the property is? if this is the case I find it confusing and I think this will be the case for the majority of developers. by now everyone using Nullability has learned, that specifying Nullability on a type means that it can be null and not doing so means, that it (in normal circumstances) won't be null. also we have learned to initialize non-nullable properties and fields, I think it would be much nicer to allow specifying the default value for the backing field like so: but maybe I understood the meeting notes wrong, in this case don't mind me 😅 |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotnet/csharplang/blob/main/meetings/working-groups/field-keyword/FK-2024-08-07.md
Agenda
Nullability analysis with the
field
keywordBeta Was this translation helpful? Give feedback.
All reactions