Hacker News new | ask | show | jobs
by genthor 1464 days ago
Maybe I misunderstood you, but you can use structs as keys of a map.
1 comments

not if it doesn't have equailty defined. Then you have to define it. Oh, and it's an AST node someone at X company wrote and there are 100+ node types. Have fun!

In crystal there is a reasonable data-based default hash implementation that you can just rely on.