-
Notifications
You must be signed in to change notification settings - Fork 104
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
Get rid of Word types #2309
Get rid of Word types #2309
Conversation
This PR does not affect the produced WebAssembly code. |
the bit operations are now available on `Nat8`, `Int8`, etc. Goes along with dfinity/motoko#2309
Nice, CI is green just in time for the weekend. Not quite ready yet, that’s a good point to stop. |
Enjoy reviewing this beast… :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I love these PR's that remove hundreds of lines of code!
Did you grep for [Ww]ord
?
val rotl : t -> t -> t | ||
val rotr : t -> t -> t | ||
|
||
val wrapping_of_big_int : Big_int.big_int -> t | ||
|
||
val wrapping_neg : t -> t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, should we perhaps provide unary -%
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth it? People can write 0 -% x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but the same is true for regular negation, yet we provide it.
Just did, nothing worrying left (still plenty of |
Oh, I still need an approval for dfinity/motoko-base#214 to get this in. |
the bit operations are now available on `Nat8`, `Int8`, etc. goes along with dfinity/motoko#2309
done done done |
this removes all traces of
Word
from the code, and thus concludes #2363.