flax icon indicating copy to clipboard operation
flax copied to clipboard

Inline type declarations

Open zhiayang opened this issue 6 years ago • 0 comments

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)

zhiayang avatar Oct 20 '19 12:10 zhiayang