-
Notifications
You must be signed in to change notification settings - Fork 64
feat: add GridRing and GridRingUnsafe #82
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
Conversation
@jogly @zachcoleman think you folks could take a look? thanks! |
@justinhwang I think a better approach would be to add a Ref: |
@zachcoleman Yeah I had the same question as I was implementing this. I ended up implementing it because from the v3 to v4 migration guide, it seems like we should have both a It looks like the base C library is missing the |
I agree @zachcoleman; in isolation I would probably do as in this PR, but I think consistency with the other bindings is more valuable for the ecosystem. |
re: consistency with other bindings - should we implement |
I'm sure they're open to PRs as well. I think taking the Python repo's lead, it could be pretty straight forward for us to provide Moving forward, if you or someone added the C implementations, we can always cut a release and update to the new underlying version as well. |
@zachcoleman yeah that makes sense - should we expose both |
I don't think it overloads this PR to include |
57cbc4c
to
9d956ac
Compare
Updated @zachcoleman |
9d956ac
to
a084e1c
Compare
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.
This looks great to me
Pull Request Test Coverage Report for Build 15429331645Details
💛 - Coveralls |
Add
gridRing
andgridRingUnsafe
for hollow ring functionality.This was in v3 as
HexRing
. Though the v3 to v4 migration guide notesthat there should be a
gridRingSafe
andgridRing
(which calls boththe
Safe
andUnsafe
variants), neither exists in the base C lib. UsegridDiskDistance
forgridRing
instead.