Skip to content

Conversation

@ajroetker
Copy link
Contributor

…e stack

// x OR y
// x > y
// x < =
func walkBinary(ctx expr.EvalContext, node *expr.BinaryNode, depth int, visitedIncludes []string) (value.Value, bool) {
Copy link
Contributor

@janveltm janveltm Jun 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really know much about the logic around the ok variable. But maybe to be safe change the returned value to nil wherever ok==false in evalBinary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

@ajroetker ajroetker merged commit e815d97 into master Jun 25, 2025
1 check passed
@ajroetker ajroetker deleted the optimizations-for-vm branch June 25, 2025 18:01
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

Successfully merging this pull request may close these issues.

4 participants