News for hackers. Stuff that matters.
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.
Re:Why I Don't Like Golang (2016) by sam0x17 on Tuesday June 14, 2022 @12:43PM (#31742076)
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.