the.bay.news

Why Vec's API isn't bigger than it's iter?

The Rust Programming Language Forum
Why Vec's API isn't bigger than it's iter?
Even though IDEs can autocomplete function calls, I find myself calling .iter() on Vec almost every single time. Why is that? I know Vec has powerful APIs like extend(), but in fact I often need foreach(), filter(), and similar methods — all of which live under .iter(). This actually caused me some trouble: I didn't realize vec.iter().max() already existed, so I went and opened a topic on Rust Internals asking for creating function max() on collections, lol. Why not implement these methods d...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.