Tagged articles
2 articles
Page 1 of 1
Radish, Keep Going!
Radish, Keep Going!
Oct 8, 2025 · Backend Development

Why Go’s New Hasher[T] Interface Could Revolutionize Custom Collections

The article explains the Go 1.26 proposal introducing a standard Hasher[T] interface for custom hash and equality logic, outlines its definition, showcases practical examples, compares existing library approaches, and discusses the long‑term benefits and challenges for the Go ecosystem.

GenericsHasherStandard Library
0 likes · 13 min read
Why Go’s New Hasher[T] Interface Could Revolutionize Custom Collections
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Aug 9, 2024 · Fundamentals

What Makes an Object Hashable in Python and How Is Its Hash Computed?

An object is hashable in Python if it is immutable and implements __eq__, allowing it to serve as a dictionary key; the hash value is normally derived from the object's address unless __hash__ is overridden, and equal objects must share identical hash values, influencing dictionary indexing and collision handling.

custom __eq__custom __hash__dictionary
0 likes · 11 min read
What Makes an Object Hashable in Python and How Is Its Hash Computed?