Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
spion
3y ago
0 comments
Save
Share
Nim lacks certain basics such as algebraic enums, so ...no.
Also responding with a brief "so, Nim" to everyone isn't effective at doing much.
0 comments
3 comments · 1 top-level
top
newest
oldest
planetis
3y ago
· 2 in thread
object variants are more flexible than enum types so what you see as a limitation others don't.
spion
OP
3y ago
No, I want first class algebraic datatypes that don't make easy things hard i.e.
https://forum.nim-lang.org/t/904
vs `#[derive(Eq)]`
planetis
3y ago
Libraries exist:
https://github.com/haxscramper/nimtraits
https://github.com/andreaferretti/patty
https://github.com/alaviss/union
Again we are not new to this problem and already offer alternatives.
1 more reply
j
/
k
navigate · click thread line to collapse