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

[Feature Request] Signed/Unsigned integers #556

Open
skyleriscoding opened this issue Sep 1, 2022 · 0 comments
Open

[Feature Request] Signed/Unsigned integers #556

skyleriscoding opened this issue Sep 1, 2022 · 0 comments

Comments

@skyleriscoding
Copy link

At the moment, Vale only has support for signed integers. It would be highly beneficial the addition of unsigned ones.
I propose making integers unsigned by default. Most of the times negative numbers aren't needed, and they can be source of bugs.
To make integers signed, an explicit sign is required before the literal.

unsigned u32 = 3
signed i32 = +3
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