Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
cobby
2y ago
0 comments
Save
Share
Also Nim requires you to use unique field names across all variants.
0 comments
3 comments · 1 top-level
top
newest
oldest
alwaysbeconsing
2y ago
· 2 in thread
This annoying restriction is lifted in Nim 2; see the linked announcement.
xigoi
2y ago
Where in the announcement does it say that?
ElegantBeef
2y ago
They likely read "overloadable enums" and went "Oh Rust calls their tagged unions enums" so assumed all languages did.
1 more reply
j
/
k
navigate · click thread line to collapse