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

Constant initialization for structures #13

Open
Victorious3 opened this issue Oct 28, 2022 · 0 comments
Open

Constant initialization for structures #13

Victorious3 opened this issue Oct 28, 2022 · 0 comments
Labels
proposal New feature or request

Comments

@Victorious3
Copy link
Contributor

The title says it all, I want to be able to set default values for struct fields:

type S = struct {
    a: int = 20
    b: double = 10.5
}

These need to be constant expressions.

@Victorious3 Victorious3 added the proposal New feature or request label Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant