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

Get rid of Word types #2309

Merged
merged 116 commits into from
Apr 14, 2021
Merged

Get rid of Word types #2309

merged 116 commits into from
Apr 14, 2021

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented Feb 3, 2021

this removes all traces of Word from the code, and thus concludes #2363.

@dfinity-ci
Copy link

dfinity-ci commented Feb 5, 2021

This PR does not affect the produced WebAssembly code.

nomeata added a commit to dfinity/motoko-base that referenced this pull request Feb 5, 2021
the bit operations are now available on `Nat8`, `Int8`, etc.

Goes along with dfinity/motoko#2309
@nomeata
Copy link
Collaborator Author

nomeata commented Feb 5, 2021

Nice, CI is green just in time for the weekend. Not quite ready yet, that’s a good point to stop.

@nomeata nomeata marked this pull request as ready for review April 13, 2021 17:19
@nomeata
Copy link
Collaborator Author

nomeata commented Apr 13, 2021

Enjoy reviewing this beast… :-)

@nomeata nomeata requested a review from rossberg April 13, 2021 17:19
Copy link
Contributor

@rossberg rossberg left a 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?

doc/modules/language-guide/pages/language-manual.adoc Outdated Show resolved Hide resolved
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
Copy link
Contributor

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?

Copy link
Collaborator Author

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

Copy link
Contributor

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.

@nomeata
Copy link
Collaborator Author

nomeata commented Apr 14, 2021

Did you grep for [Ww]ord?

Just did, nothing worrying left (still plenty of word in the backend of course)

@nomeata nomeata added the automerge-squash When ready, merge (using squash) label Apr 14, 2021
@nomeata
Copy link
Collaborator Author

nomeata commented Apr 14, 2021

Oh, I still need an approval for dfinity/motoko-base#214 to get this in.

nomeata added a commit to dfinity/motoko-base that referenced this pull request Apr 14, 2021
the bit operations are now available on `Nat8`, `Int8`, etc.
goes along with dfinity/motoko#2309
@nomeata
Copy link
Collaborator Author

nomeata commented Apr 14, 2021

done done done

@nomeata nomeata closed this Apr 14, 2021
@nomeata nomeata reopened this Apr 14, 2021
@mergify mergify bot merged commit 74beb8c into master Apr 14, 2021
@mergify mergify bot deleted the joachim/no-word branch April 14, 2021 08:22
@mergify mergify bot removed the automerge-squash When ready, merge (using squash) label Apr 14, 2021
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

Successfully merging this pull request may close these issues.

3 participants