Re:Nim v2.0 Released
by alwaysbeconsing on Tuesday August 01, 2023 @02:24PM
(#36960205)
This annoying restriction is lifted in Nim 2; see the linked announcement.
[ Parent
| on HN ]
Where in the announcement does it say that?
Re:Nim v2.0 Released
by ElegantBeef on Tuesday August 01, 2023 @03:06PM
(#36960927)
They likely read "overloadable enums" and went "Oh Rust calls their tagged unions enums" so assumed all languages did.
Re:Nim v2.0 Released
by alwaysbeconsing on Tuesday August 01, 2023 @06:07PM
(#36963834)
Oh, 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.