Boolean value as value #7
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. |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm allowing boolean. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions