Comment

Comment by zarzavat

Many implementations these days also go the opposite way, guaranteeing that hash tables always iterate in insertion order.

I prefer this because it means I don’t have to decide whether I need an ordered map or an unordered map. Often if I think I need an unordered map it turns out to be wrong for some subtle reason.

parent zarzavat 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton