Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
planetis
3y ago
0 comments
Save
Share
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.
0 comments
2 comments · 1 top-level
top
newest
oldest
spion
3y ago
· 1 in thread
This is something that should be in the core language, not in a deprecated library
planetis
OP
3y ago
Mind explaining why algebraic types are better? than cased objects and why a limitation in the fields iterator, that prevents `==` to be automatically lifted, is connected to that?
j
/
k
navigate · click thread line to collapse