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

Treat undefined as false for boolean variants #146

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

mskelton
Copy link
Collaborator

@mskelton mskelton commented Jan 14, 2024

Fixes #141
Fixes #150

@mskelton mskelton requested a review from jrgarciadev January 14, 2024 21:55
@mskelton mskelton force-pushed the fix-boolean-undefined branch from 4655773 to 18a1a33 Compare January 14, 2024 21:56
@mskelton
Copy link
Collaborator Author

@jrgarciadev Curious to get your thoughts on this one. I think it's reasonable to default to false for boolean variants. Otherwise there becomes a third state for boolean variants with true, false, and undefined which in practice I think is almost never something you would want.

@mskelton mskelton force-pushed the fix-boolean-undefined branch from 18a1a33 to 0091d92 Compare January 30, 2024 01:51
@mskelton mskelton force-pushed the fix-boolean-undefined branch from 0091d92 to d8f5aa6 Compare January 30, 2024 02:20
Copy link
Member

@jrgarciadev jrgarciadev left a comment

Choose a reason for hiding this comment

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

Thank you! @mskelton

@jrgarciadev jrgarciadev merged commit ddc1554 into main Feb 9, 2024
4 checks passed
@jrgarciadev jrgarciadev deleted the fix-boolean-undefined branch February 9, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants