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 @:structInit to Style #358

Merged
merged 1 commit into from
Jun 12, 2020
Merged

Conversation

kevinresol
Copy link
Contributor

This is a breaking change. But I doubt anyone will manually construct a Style.

@ianharrigan
Copy link
Member

So when structInit is used you HAVE to init it this way? Ie, you can never new Style()?

As you say, i doubt anyone would new Style() and if they do, i think the structure initialization is better anyway

@kevinresol
Copy link
Contributor Author

you can never new Style()?

you can't. compiler will generate an implicit constructor, but you can't call it manually.

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