Code Smell 291 - Mutable Keys

Changing Keys, Losing Values TL;DR: When you use mutable objects as keys in hashed collections, changing them breaks contracts. Problems

Feb 23, 2025 - 17:20
 0
Code Smell 291 - Mutable Keys

Changing Keys, Losing Values

TL;DR: When you use mutable objects as keys in hashed collections, changing them breaks contracts.

Problems