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

Simplify variant protocol #907

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Simplify variant protocol #907

merged 1 commit into from
Feb 7, 2025

Conversation

udoprog
Copy link
Collaborator

@udoprog udoprog commented Feb 7, 2025

This changes the IS_VARIANT protocol to receive the type hash rather than the variant index.

This is more portable, as it doesn't require any particular variant ordering to apply across the virtual machine and it makes the instruction to match a variant simpler.

@udoprog udoprog added the enhancement New feature or request label Feb 7, 2025
@udoprog udoprog merged commit 30e74a7 into main Feb 7, 2025
25 checks passed
@udoprog udoprog deleted the simplify-variants branch February 7, 2025 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant