Closed iluuu1994 closed 3 years ago
RFC has been updated. Leaving this open for implementation. Close when implemented.
I actually think we should completely drop ReflectionEnumCase
until we actually add ADTs. Otherwise it's just an empty interface. Using that in the reflection methods would be completely useless as then you'd just have to assert that it's a unit case.
Adjusted in the RFC and implemented.
It might be better to make
ReflectionEnumConst
and interface and renameReflectionEnumConst
toReflectionUnitEnumCase
. This way, when we add ADTs we can create aReflectionTaggedUnionCase
(or what have you) that will be based onReflectionMethod
(or maybe completely separate).