Comment

Comment by duneroadrunner

The problem with trying to substitute lists with vectors is that their iterators behave differently. I.e. vector iterators point to positions rather than elements and are prone to being invalidated. So sometimes it's nice to have a vector that supports iterators that behave like list iterators[1].

[1] shameless plug: https://www.codeproject.com/Articles/1087021/Stable-Iterator...

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton