Message288145
Your implementation looks right, but I don't see the point of defining combinations AB, AC, ABD in the Foo enum. Foo may only define A, B, C, D and outside of Foo anyone can build any needed combinations.
This way it looks clear in the Foo declaration (4 lines, 4 auto()). Did I missed a usefull usage of declaring combination inside the enum? |
|
Date |
User |
Action |
Args |
2017-02-19 16:48:46 | mdk | set | recipients:
+ mdk, ethan.furman, magu |
2017-02-19 16:48:46 | mdk | set | messageid: <1487522926.12.0.108945124104.issue29594@psf.upfronthosting.co.za> |
2017-02-19 16:48:46 | mdk | link | issue29594 messages |
2017-02-19 16:48:46 | mdk | create | |
|