Not sure why an enum with 12 cases is a bad idea. And each case can have an associated value.
Conversation
Replying to
Depends on how much is shared between types. You could have switches in just one private dispatch() method.
Replying to
In many cases the alternative would be "a bunch of type decls with method implementations" too.
Replying to
Switching an enum groups code by operation; implementing a protocol groups code by type.
1
3
enums seem a bit neglected with the focus on protocol oriented code. All hail the enum!



