4 ms·
They clearly want an enum/sum type which an array of structs (which is the trivial solution they started at) doesn't provide. You're seeing someone try to addr
by hombre_fatal 3y ago
They clearly want an enum/sum type which an array of structs (which is the trivial solution they started at) doesn't provide.
You're seeing someone try to address their issues with X and suggesting "here's how you use X." It doesn't track.
- grey-area 3y agoNope, I'm saying don't use X at all, because enums are not the right thing to use to solve this problem. This solution of magic comments and a precompiler is worse than not using enums at all.