Heterogeneous Enum #8
Jack-Works
started this conversation in
General
Replies: 1 comment
-
JS doesn’t have a strong type system. There is no good reason imo to ban mixed types of enums. |
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 TypeScript, enum can be Heterogeneous. I very doubt if it is useful.
Flow.js does not allow heterogeneous enum.
Problem
This conflicts with the limited computed value (#12) because we cannot specify symbols without ad-hoc syntax.
This conflicts with the inline-able requirement (#4) for the same reason.
Should we ban it?
Beta Was this translation helpful? Give feedback.
All reactions