Skip to content
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

Feature request - lazy evaluation of expressions with missing variables #511

Open
seime opened this issue Oct 21, 2024 · 0 comments
Open

Comments

@seime
Copy link

seime commented Oct 21, 2024

Thanks for providing this great library!

I have a use case where multiple expressions with dependencies between them that needs to be solved piece by piece (expression by expression), ie

expression 1: a || b -> store as variable c
expression 2: c || d-> store as variable e

In order to solve expression 1, I need to solve expresssion 2.

However, not all variables will be available, and I would still like to solve the expressions with the variables that are available. Thus the need for lazy evaluation.

For instance in expression 1, if either a or b is available and just one of them is true, I would like expression 1 to evaluate successfully to true. This again would let me evaluate expression 2 without the need for d to be present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant