Tuples not Hashable, missing standard library functions

4/10 Low

Tuples cannot be used as dictionary keys because they don't conform to Hashable, requiring developers to create wrapper structs instead. Additionally, basic functionality like `.sum()` is missing, forcing use of `.reduce(0, +)` repeatedly.

Category
dx
Workaround
hack
Stage
build
Freshness
persistent
Scope
language
Upstream
open
Recurring
No
Buyer Type
individual
Maintainer
slow

Sources

Collection History

Query: “What are the most common pain points with Swift for developers in 2025?4/4/2026

"Why are tuple not Hashable ?!" Which means that you cannot have a tuple of Int `(1, 1)` as a key in a dict, and you have to make a struct that implement Hashable instead. And "Why do they not have a `.sum()` and I have to do `.reduce(0, +)` every time instead."

Created: 4/4/2026Updated: 4/4/2026