[Version 10.0] Feature support for record structs#1556
Conversation
| ; | ||
|
|
||
| record_struct_body | ||
| : struct_body ';'? |
There was a problem hiding this comment.
The optional trailing semicolon was not mentioned in the MS proposal; however, I discovered that VS 2026 18.2.1 allows it (just as we allow it for record classes). What was the intent here?
0120f1e to
951daf0
Compare
951daf0 to
e050360
Compare
e050360 to
078cdeb
Compare
078cdeb to
569310a
Compare
Remove unnecessary blank lines from classes.md
- Grammar allows `record` and `record class` - `with` expressions allowed in non-record struct types - a couple small merge issues where text was lost
9f994ae to
36f3bcf
Compare
|
An earlier version of this feature is already present on |
|
After researching and writing-up "Primary constructors" as a general feature in v12 for classes and structs outside of record variants, I have made a lot of tweaks to this spec (and to the V9 record class spec) to ease the transition to that v12 spec. |
The original version of this PR has been modified based on Issue #1683.
This is Rex's adaptation of the corresponding MS proposal.