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

General integer bounds #173

Open
rooooooooob opened this issue Apr 14, 2023 · 0 comments
Open

General integer bounds #173

rooooooooob opened this issue Apr 14, 2023 · 0 comments

Comments

@rooooooooob
Copy link
Collaborator

e.g.

foo = 1..7

We only support these integer bounds when they map to existing rust primitives e.g. uint .le 255 turns to u8, etc.

Questions:

  1. Do we want to simply enforce the bound on deserializtion?
  2. Do we want to restrict access and only have throwing setters to check ranges?
  3. Do we want to use u64/i64 or make it fit in the smallest possible e.g. foo above would be u8.
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