Closed samreid closed 5 years ago
@jonathanolson said:
Yes, it's super helpful to be able to iterate over all possible options in an enumeration.
I agree it is useful to iterate over enumeration values, and this is also helpful in Property validation via validValues: MyEnumeration.VALUES
. @pixelzoom sound ok?
OK. But VALUES
needs to be frozen.
Values are frozen as described in https://github.com/phetsims/phet-core/issues/46, unless I'm misunderstanding something. Please clarify.
I reviewed this issue before seeing #46, where I see that VALUES
is now frozen. Closing.
From #42 @pixelzoom said: