Support runtime-defined enums #537
Labels
dragons ahead
Task which requires handwriting compiletime reflection for Scala2&3 and/or updating the architecture
enhancement
Some enum-like types cannot be guaranteed to have fixed number of instances known at compile-time (or at least they cannot have exhaustive pattern-matching).
It would be useful to define some interface which could mapping to/from them in the runtime (probably only with
PartialTransformer
s).Example which could be handled with such approach could be various customizations to
scala.Enumeration
(they might not work the best with what we use forsealed
/Scala 3enum
s/Javaenum
s) or large, immutable (but build in the runtime) sets of values.The text was updated successfully, but these errors were encountered: