We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OpenType has lots of union types! We should have a nice way of describing them.
The text was updated successfully, but these errors were encountered:
I wonder if we could have something like this:
union Foo (param : T) & Bar param { Foo0, Foo1, };
This would ensure that each variant properly intersects with the given prefix.
Sorry, something went wrong.
Perhaps this might be clearer:
union Foo & FooUnknown { Foo0, Foo1, FooUnknown, }; struct Foo0 { version : U16Be == 0, data : U32Be, }; struct Foo0 { version : U16Be == 1, data : F64Be, }; struct FooUnknown { version : U16Be, };
I dunno though 🤷♂️
No branches or pull requests
OpenType has lots of union types! We should have a nice way of describing them.
TODO
The text was updated successfully, but these errors were encountered: