-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Support local variables in formula #153381
Comments
@P1llus can you give us a couple of examples of Painless scripts you've had to rewrite as Lens formulas (or weren't able to rewrite as formulas) and describe the performance concerns? |
Talking about variables, if the UI and adding functions above the formula UI would be too much, we should be able to write multiple formulas in a single formula, storing them as temp variables. Using one of the steps on the picture above as an example:
Then later, we can simply create the formula for the painless, using |
To me the main problem here sounds like the lack of variables support in Formula. Maybe we can rename the issue? The formula above can be already written in formula, but I understand it is a bit verbose to do so:
With variables support it might be a bit easier to read, but probably it would require quite a bit work on the tinymath side of formula:
What do you think? |
@P1llus do you agree that the main ask from your side is variables in formula? |
@drewdaemon I think being able to use local variables would remove the necessary nesting quite alot and make it easier to read :) |
Closing this because it's not planned to be resolved in the foreseeable future. It will be tracked in our Icebox and will be re-opened if our priorities change. Feel free to re-open if you think it should be melted sooner. |
#153381 (comment)
Bears technical similarities to #135265
The text was updated successfully, but these errors were encountered: