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 for statically determining the type of fields #1

Open
hansihe opened this issue Apr 2, 2016 · 0 comments
Open

Support for statically determining the type of fields #1

hansihe opened this issue Apr 2, 2016 · 0 comments

Comments

@hansihe
Copy link
Member

hansihe commented Apr 2, 2016

For now this is needed in two places:

  • Switch type, equality testing can be made easier and better
  • Mapper type, since the key in the mappings array is always string, we need to statically determine the type of the inner field, so that we can convert it to the appropriate type

Note that there are hacks to get around both of these. I would rather do it the proper way.

This could also used for compile time type checking, we could for example verify that the field referred to in a array count is an integer.

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

No branches or pull requests

1 participant