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

js: Mark simplifyWithAttributes and simplifyPoints as experimental #627

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

zeux
Copy link
Owner

@zeux zeux commented Oct 30, 2023

Both functions are marked as experimental in C++ code; their interface and implementation is subject to change. In JS, if the interface of these functions changes, it may lead to subtle or not-so-subtle issues with these functions. For now we require the caller to opt into the use of these functions by setting a module-level experimental boolean.

I am not 100% sure this is a great idea :) but the sensible alternative seems to be just marking them as experimental in the documentation... I mainly would like to avoid the situation where the NPM update to a future version silently breaks the users who decided to rely on the specific behavior of these functions. simplifyPoints is not very likely to change but is relatively new, and simplifyWithAttributes is very likely to change in so far as the error metric is concerned, and maybe other aspects of the implementation.

That said, given that these aren't even documented atm maybe a comment in .d.ts and .js file would suffice?

Both functions are marked as experimental in C++ code; their interface
and implementation is subject to change. In JS, if the interface of
these functions changes, it may lead to subtle or not-so-subtle issues
with these functions. For now we require the caller to opt into the
use of these functions by setting a module-level experimental boolean.
@zeux zeux mentioned this pull request Oct 30, 2023
10 tasks
@zeux zeux merged commit 69a5292 into master Oct 31, 2023
12 checks passed
@zeux zeux deleted the jsexp branch October 31, 2023 14:33
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.

1 participant