4 ms·
Your example does not use a type, so I fail to see how it's an equivalent example. What does your example give you aside from "namespacing" the values under a g
by atombender 4y ago
Your example does not use a type, so I fail to see how it's an equivalent example. What does your example give you aside from "namespacing" the values under a generic struct?
- xaduha 4y agoRead the whole comment, FlagID is there and function signature func IsEnabled(id FlagID) bool { would be satisfied just fine
- atombender 4y agoI was not replying to your proposal, but to the comment by "lenkite", which only defines "var Animal" and no type.
- xaduha 4y agoIt is the same thing, just needs a bit of imagination.