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

Remove new forest from adapt callback arguments #1279

Open
lukasdreyer opened this issue Oct 25, 2024 · 1 comment
Open

Remove new forest from adapt callback arguments #1279

lukasdreyer opened this issue Oct 25, 2024 · 1 comment
Labels
enhancement Enhances already existing code

Comments

@lukasdreyer
Copy link
Collaborator

Feature request

Remove non committed new forest from adapt callback, see:

/* TODO: Do we really need the forest argument? Since the forest is not committed yet it
* seems dangerous to expose to the user. */

Estimated priority
Which of these is most applicable (remove the others):

"Priority: medium" Should be solved within half a year

Additional context
Add any other context or screenshots about the feature request here.

@holke holke added the enhancement Enhances already existing code label Oct 25, 2024
@dutkalex
Copy link
Contributor

dutkalex commented Oct 25, 2024

Hi! This is indeed a good idea IMO, as the current API is really confusing and I really can't think of a valid usecase for querying the not-yet-commited forest.
I would just like to advocate for this breaking change to be handled through an explicit deprecation process to give users a little bit of time and flexibility. I don't know your policy regarding C++ standards, but if you could ship with both the new API (without the not-yet-commited forest) and the old one, with a [[ deprecated ( "please migrate to the new API" ) ]] attribute (which requires C++14 IIRC), that would be great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhances already existing code
Projects
None yet
Development

No branches or pull requests

3 participants