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

Ensure the 'in' operator is a logical OR of element equality results #114

Open
TristonianJones opened this issue Mar 31, 2021 · 0 comments

Comments

@TristonianJones
Copy link
Collaborator

Set membership tests should error if the 'elem' does not exist in a mixed element type list as containment is equivalent to the macro exists() behavior:

Given 'elem' in [1u, 'str', 2, b'bytes'], the pair-wise comparison between elem and each value in the list should generate a series of false and error values which combine to an error. Note, this test would likely default to the existing behavior (returning false) if optimizations were enabled to change set membership to a hash lookup.

It's possible that only aggregate values with homogeneous types should be permitted with the set membership optimizations to ensure consistent behavior in the optimized and non-optimized states.

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