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

Inline type declarations #39

Open
zhiayang opened this issue Oct 20, 2019 · 0 comments
Open

Inline type declarations #39

zhiayang opened this issue Oct 20, 2019 · 0 comments

Comments

@zhiayang
Copy link
Member

Potentially allow something like this:

var s: struct {
	x: int
	// ...
}

what are these called, voldermort types? can substitute named tuples in other languages i suppose. Also need to investigate if this is useful for enumeration types (the cases aren't placed into global scope, so idk how you'd refer to them)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant