Re:Why I Don't Like Golang (2016)
by genthor on Tuesday June 14, 2022 @03:49AM
(#31735955)
Maybe I misunderstood you, but you can use structs as keys of a map.
[ Parent
| on HN ]
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.