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

Support Tuple<T1, T2> syntax by default #49

Open
grahamboree opened this issue Apr 28, 2023 · 0 comments
Open

Support Tuple<T1, T2> syntax by default #49

grahamboree opened this issue Apr 28, 2023 · 0 comments
Labels
📈enhancement A useful improvement or extension to existing behavior

Comments

@grahamboree
Copy link
Contributor

It's often useful to specify values of type Tuple<T1, T2> as a two-element list. e.g.

position: [10, 15]

should be parse-able with the following

System.Tuple<float,float> position = Doc["position"].As<System.Tuple<float,float>>();

There should be a case for handling generic tuple types in TypeReifier.

@grahamboree grahamboree added the 📈enhancement A useful improvement or extension to existing behavior label Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📈enhancement A useful improvement or extension to existing behavior
Projects
None yet
Development

No branches or pull requests

1 participant