Skip to content

Conversation

@zhjwpku
Copy link
Collaborator

@zhjwpku zhjwpku commented Jan 10, 2026

No description provided.

}

Result<bool> IsBoundVisitor::AlwaysTrue() { return true; }
Result<std::optional<bool>> IsBoundVisitor::AlwaysTrue() { return std::nullopt; }
Copy link
Member

Choose a reason for hiding this comment

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

I think the Java impl is overly complicated to return null by default and then a lot of places should handle null with different meanings.

Copy link
Member

Choose a reason for hiding this comment

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

What about letting each visitors to handle this instead of complicating the return type?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@zhjwpku zhjwpku force-pushed the fix_is_bound_expression branch from 1ba9c7d to 366c586 Compare January 12, 2026 10:49
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.

2 participants