I haven't used them yet in Smalltalk, but I'm thinking I'll have a need to verify that a value passed to a method is a member of a confined set. Maybe I should just test a symbol passed as an argument to a method to see if it's in an array of allowed symbols.On Oct 5, 2008, at 8:38 PM, Michael van der Gulik wrote:
What are you using enums for? I've never found I've needed them, often because the need for them can be refactored away and you end up with cleaner code.
Often I just use symbols (i.e. #red, #blue, #green). These are generic descriptive names for thingies.