Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cobby
on Aug 1, 2023
|
parent
|
context
|
favorite
| on:
Nim 2.0
Also Nim requires you to use unique field names across all variants.
alwaysbeconsing
on Aug 1, 2023
[–]
This annoying restriction is lifted in Nim 2; see the linked announcement.
xigoi
on Aug 1, 2023
|
parent
[–]
Where in the announcement does it say that?
ElegantBeef
on Aug 1, 2023
|
root
|
parent
[–]
They likely read "overloadable enums" and went "Oh Rust calls their tagged unions enums" so assumed all languages did.
alwaysbeconsing
on Aug 1, 2023
|
root
|
parent
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: