Skip to content

Switch to designated initializer syntax#851

Merged
amomchilov merged 1 commit into
mainfrom
Alex/designated-initializers
Jun 10, 2026
Merged

Switch to designated initializer syntax#851
amomchilov merged 1 commit into
mainfrom
Alex/designated-initializers

Conversation

@amomchilov

@amomchilov amomchilov commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Makes the rb_data_type_t construction much more clear.

In the HandleData case, it also ensures we initailize all fields, even ones we add in the future that we forget to add to the initializer statement.

amomchilov commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

@amomchilov amomchilov marked this pull request as ready for review June 9, 2026 20:43
@amomchilov amomchilov requested a review from a team as a code owner June 9, 2026 20:43

@alexcrocha alexcrocha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does indeed make it clearer. Thank you 🙏

@amomchilov amomchilov merged commit 393d740 into main Jun 10, 2026
47 checks passed
@amomchilov amomchilov deleted the Alex/designated-initializers branch June 10, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants