Open
Description
- Proposal added: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-10.0/record-structs.md
- Discussed in LDM
- Decision in LDM
- Finalized: Done
- Spec'ed
Allow value type records with record struct
.
Secondarily, we would also allow record class
(with same meaning as record
) and allow explicit declarations of positional members using different member kinds (get/set
property, or field).
References
- https://github.com/dotnet/csharplang/blob/master/proposals/csharp-9.0/records.md
- https://github.com/dotnet/csharplang/blob/master/spec/structs.md
- https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-05-04.md#structs-as-records
- https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-06-22.md#struct-records
- https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-09-30.md#struct-equality
- https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-10-05.md#record-struct-primary-constructor-defaults
https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-10-07.md#record-struct-syntax