-
Notifications
You must be signed in to change notification settings - Fork 472
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
accept size parameter for polygonToCellsExperimental #947
accept size parameter for polygonToCellsExperimental #947
Conversation
Some basic questions since I've forgotten some of our code organization practice:
|
It depends on the level of support for this function. If this is an experimental function but we intend for bindings to mostly use the iterator approach, I don't think it needs to be there. If this is a supported API that has backwards compatibility guarantees it should be in
H3_EXPORT ensures that the symbol is visible outside of the library, and allows for it to be easily renamed. |
I think the level of support is explained by the But I also thought that symbols were external (e.g., supported API, "just the bindings", experimental functions) if and only if they were defined in Every symbol in the previous release followed this property. The (unreleased) Unless I'm misunderstanding something, I'm suggesting moving these to |
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 fine to me, with the caveat that if we're going to do this, we should plan to change the API again in the near future to return an iterator, so that callers could stream output iteratively into different memory blocks. If we're ok with that change later, this seems fine to ship early.
Agreed, I would like to expose an iterator to the bindings. Bindings can begin experimenting with the iterators, and for other uses inthe mean time, this will be a temporary experimental API to unblock the new version. |
@nrabinowitz, do you mean change the API for |
I added a comment in h3api.h.in to that effect |
No description provided.