Replies: 2 comments 5 replies
-
Very happy to see Required Properties having been discussed. I think most programmers would be fine with compile-time only warnings since it's primarily about moving the "uninitialized field" warning from NRTs from the declaration-site to construction-site. Interesting point about factory methods, tho. Perhaps a bit more attribute-language is needed for that space, but that seems easy enough. |
Beta Was this translation helpful? Give feedback.
-
If required properties are checked at runtime as well as compile time, what's the advantage of required properties over constructor parameters? Adding a required property would be a binary breaking change. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-09-16.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions