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

don't require a value when packing if the enum variant is undefined #6

Open
oofdere opened this issue Nov 24, 2023 · 2 comments
Open

Comments

@oofdere
Copy link
Owner

oofdere commented Nov 24, 2023

No description provided.

@oofdere
Copy link
Owner Author

oofdere commented Aug 12, 2024

bad idea for anything but maybe undefined which I'll keep thinking about

@oofdere oofdere changed the title don't require a value when packing if the enum variant is null, undefined, etc. don't require a value when packing if the enum variant is undefined Aug 12, 2024
@oofdere
Copy link
Owner Author

oofdere commented Aug 15, 2024

indeed a terrible idea for any and unknown (and obviously never) I should document that type narrowing makes it very hard to use the _ fallback when you do this

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