Comment by psd1
2 years ago
That is a great feature.
You can have those semantics in .net, because any hashable can be a dictionary key. It will have a small performance penalty, which won't matter in 99% of cases. You could roll your own collection and get O(1).
F# lets enum values be records, which is the most elegant solution IMO for manageable counts and fields.
No comments yet
Contribute on Hacker News ↗