how to disable the builtin function "if"
hi,
I am using expr for creating a DSL to program music melodies (melrōse.org) .
The version (v1.17.5) has support for the operator if else but this conflicts with my custom "if" function.
For earlier releases, I was able to disable functions:
for _, each := range []string{"join", "repeat", "trim", "replace", "duration", "map"} {
options = append(options, expr.DisableBuiltin(each))
}
However, this does not work for the "if" operator. Please advice how to accomplish this.
Yes, if is an operator. I will add an option to disable if operators.
hi, this bug is blocking my next release. Do you know to which version of expr I can rollback to make it work again?
One possibility is to use Patcher to check of used if's.
This is not possible as the usage of a custom if function causes the parser to fail
We also have a custom function and are waiting for this feature :) otherwise we cannot upgrade