Corrected order of operations. Made runnable.#4
Corrected order of operations. Made runnable.#4dsoprea wants to merge 2 commits intogoogle:masterfrom
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
I signed it! |
|
CLAs look good, thanks! |
|
Thanks for making it compilable, but why reverse the order of Map and MapInverse? I think it reads better if you went |
|
If you're referring to |
|
I understand that x,y is more understandable than t. Sadly Wikipedia and others use different symbols for t, so there seems to be no less ambiguous letter. However, it looks backwards to me to have |
|
Done. I just added the assertions. It was either that or printing out the values instead of just impotently putting the expected values in the comments (which started with me). |
|
Now I'm wondering if perhaps it is better to use the existing example from the godoc: https://github.com/google/hilbert/blob/master/example_test.go#L23 Since this is early in the README the goal should be to focus on a quick example to get the point across. Having an example with error checking, and variables, just dilutes the example. |
3 similar comments
- Made example code runnable.
1 similar comment
|
Not completely sure why coverage dropped so much. It dropped 40% when I updated just the README, last time. |
|
Would you add your 64 bit addition to it's own branch/pull request. And keep this PR for the README update. Also, quick comment, do you have a use case for the 64bit addition? |
|
I can't keep the README changes here because I added comments to show the 64-bit support. Yes, I have a use-case. I'll open a new PR for the new branch and comment there. |
This is a pretty petty PR, but the order of the operations in the example in the README is non-sensical. I flipped them and also restructured the example so that it was copy-and-paste executable (including defining
xandy).