Enums cases are statically allocated anyway, so mutating one (if you could) would be mutating a global essentially. If you want this, might as well make a data class that wraps the enum and carries with it whatever you want to mutate
➕ 1
v
v79
12/06/2020, 8:38 AM
It's not a big deal. It's semantically a little cleaner if I could (I wanted to add a mutable list to my enum, and it would be a challenge to do it all in the constructor) but I can work around it.