Y
Hacker News
new
|
ask
|
show
|
jobs
by
cobby
1048 days ago
Also Nim requires you to use unique field names across all variants.
1 comments
alwaysbeconsing
1048 days ago
This annoying restriction is lifted in Nim 2; see the linked announcement.
link
xigoi
1048 days ago
Where in the announcement does it say that?
link
ElegantBeef
1048 days ago
They likely read "overloadable enums" and went "Oh Rust calls their tagged unions enums" so assumed all languages did.
link
alwaysbeconsing
1048 days ago
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.
link