This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Repository navigation
Boolean value as value #7
Closed
Jack-Works
started this conversation in
General
Replies: 3 comments 1 reply
some might find it useful. constraining the syntax to disallow booleans is probably unnecessary overhead. |
0 replies
|
Can an enum only have one type of thing? What's wrong with an enum that has values of true, false, 0, 1, and |
1 reply
|
I'm allowing boolean. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In flow.js and rbuckton's proposal, boolean value is supported as the enum key.
Boolean only have 2 value in the value space so I'm wondering if it is really useful, but it also has no harm if we support it.
Should we support this use case?
All reactions