4 ms·
Also Nim requires you to use unique field names across all variants.
by cobby 3y ago
Also Nim requires you to use unique field names across all variants.
- alwaysbeconsing 3y agoThis annoying restriction is lifted in Nim 2; see the linked announcement.
- xigoi 3y agoWhere in the announcement does it say that?
- ElegantBeef 3y agoThey likely read "overloadable enums" and went "Oh Rust calls their tagged unions enums" so assumed all languages did.
- alwaysbeconsing 3y agoOh, no, I actually misunderstood cobby's complaint: the field names, yes, those still have to be unique. Which is also a bit annoying, though I've seen discussions about changing it.