Skip to content

Implement default simplify() on Expression #8001

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

Merged

Conversation

sovdeeth
Copy link
Member

@sovdeeth sovdeeth commented Jul 3, 2025

Problem

Addons that directly implement Expression had to be recompiled since simplify() moved from Expression to the Simplifiable interface.

Solution

Providing a default implementation of simplify() removes the need to recompile.

Testing Completed

Supporting Information

Developers should keep in mind that implementing simplify is still highly recommended if possible, since leaving it to the default impl means no simplification can be done.


Completes: SkriptLang/skript-reflect#141
Related: none

@sovdeeth sovdeeth requested review from a team as code owners July 3, 2025 17:18
@sovdeeth sovdeeth added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jul 3, 2025
@sovdeeth sovdeeth requested review from UnderscoreTud and TheMug06 and removed request for a team July 3, 2025 17:18
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jul 3, 2025
@sovdeeth sovdeeth moved this to In Review in 2.12 Release Jul 3, 2025
@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.12 Release Jul 3, 2025
@skriptlang-automation skriptlang-automation bot added feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. and removed needs reviews A PR that needs additional reviews labels Jul 3, 2025
@sovdeeth sovdeeth merged commit 23c7650 into SkriptLang:dev/feature Jul 5, 2025
5 checks passed
@skriptlang-automation skriptlang-automation bot added completed The issue has been fully resolved and the change will be in the next Skript update. and removed feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. labels Jul 5, 2025
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done in 2.12 Release Jul 5, 2025
Burbulinis pushed a commit to Burbulinis/Skript that referenced this pull request Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants