Replies: 2 comments 17 replies
-
My understanding of current design is that primary constructor in non-record types won't generate properties. Will it or this paragraph is talking about possible future extensions?
If this is talking about bringing in many of record features, either now of potentially in future, I can understand. But if this is talking about primary constructor, I'm confused as it does not sound relevant.
My impression is that all your arguments are around on the idea that "primary constructor parameters are normal parameters like in any other functions". If the scope of primary constructor parameters was just within the primary constructor body, as other functions, I'd fully agree. However, it is visible and mutable in the whole class, including other files with |
Beta Was this translation helpful? Give feedback.
-
I respect the LDM's decision on |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2023/LDM-2023-07-31.md
Agenda
readonly
Beta Was this translation helpful? Give feedback.
All reactions