-
Notifications
You must be signed in to change notification settings - Fork 6
Ranged Integers #66
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
Ranged Integers #66
Conversation
Add test cases |
Add types to in code values / constants |
Cast module |
Fix this:
|
Well it seems that that on its own should never typecheck. Rather either the user should specify a cast, or add a |
Add lower bound to all ints too. |
The semantics of MIN and MAX should be: So int #(MIN: 3, MAX: 16) can have a value from 3-15 inclusive. It makes for better ergonomics. (powers of 2, clog2, etc) |
Oh also, BitsToInt will need to be expressed from the source bits, as we can't really make any statements about the value of these bits. We'll need a |
I commit partially, because it's in a pretty good state right now, but I plan to do major changes again. - Split typechecking error reporting to final_checks.rs - Implement subtyping in SetUnifier itself (possibly with Ord?)
- It's not quite in ordung yet though....
Close #28