You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
However, the ternary operator, which can be evaluated (in some cases, I can see that it wouldn't if it was based on non-explicit variable), is not evaluated and I'm left with the following, clunky rules:
Nice idea. I have a pull request that contains a quite extensive expression optimizer with in. Once that lands, we should be able to handle this case using it.
mckoss
changed the title
Optimize bolt evaluate ternary operators
Optimize constant subexpressions in boolean and ternary operators
Jan 15, 2016
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a generic function that I use called
isAuthType
which takes a single input argument and the return value is the result of a ternary operator:That function is used as a rule, and I would expect the following input/output:
However, the ternary operator, which can be evaluated (in some cases, I can see that it wouldn't if it was based on non-explicit variable), is not evaluated and I'm left with the following, clunky rules:
I'll probably separate this into two functions in the meantime to clean things up, but having these evaluate would be handy.
The text was updated successfully, but these errors were encountered: