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

Constructor for elements #7

Open
trumae opened this issue Mar 1, 2017 · 1 comment
Open

Constructor for elements #7

trumae opened this issue Mar 1, 2017 · 1 comment

Comments

@trumae
Copy link
Owner

trumae commented Mar 1, 2017

No description provided.

@trumae
Copy link
Owner Author

trumae commented Mar 1, 2017

Promoted fields act like ordinary fields of a struct except that they cannot be used as field names in composite literals of the struct.

Promoted fields are a problem to initialize structs representing an large component.

Possible solutions:

  • Constructor
  • structs without inherited field - all fields flat.

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

No branches or pull requests

1 participant