Skip to content

Add ability to deprecate Painless semantics #70505

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

Closed
jdconrad opened this issue Mar 17, 2021 · 2 comments
Closed

Add ability to deprecate Painless semantics #70505

jdconrad opened this issue Mar 17, 2021 · 2 comments
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring Team:Core/Infra Meta label for core/infra team

Comments

@jdconrad
Copy link
Contributor

Painless needs a way to allow for the deprecation of specific semantic circumstances that no longer make sense as part of the language.

As an example, there is never a time in Painless where it would make sense to have a loose constructor.

new ArrayList(); return 0;

However, changing this is backwards incompatible, so we need to add the ability to deprecate this and remove it appropriately like any other feature.

@jdconrad jdconrad added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring labels Mar 17, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Mar 17, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@jdconrad
Copy link
Contributor Author

jdconrad commented Apr 10, 2025

The amount of time investment is not worth the tradeoff here. Painless really needs a broader discussion for bwc and removing outdated features in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring Team:Core/Infra Meta label for core/infra team
Projects
None yet
Development

No branches or pull requests

2 participants