Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add array based init for unions #91

Merged
merged 1 commit into from
Jan 27, 2023
Merged

add array based init for unions #91

merged 1 commit into from
Jan 27, 2023

Conversation

samisuteria
Copy link
Contributor

For unions with a lot of members it's sometimes easier to format the code so each member is on a new line with a trailing comma. You can't do this with the variadic style init.

Copy link
Member

@NeedleInAJayStack NeedleInAJayStack left a comment

Choose a reason for hiding this comment

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

Awesome! This is a very useful addition. Thanks @samisuteria!

@NeedleInAJayStack NeedleInAJayStack merged commit 67fdc7a into GraphQLSwift:main Jan 27, 2023
@samisuteria samisuteria deleted the samisuteria/union-init branch January 27, 2023 04:01
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.

2 participants