News for hackers. Stuff that matters.
Re:Rust – A hard decision pays off by efnx on Wednesday August 24, 2022 @04:36PM (#32585392)
The selling point of iterators isn’t that they replace for loops, it’s that you can make new iterators by implementing a trait. That at way downstream users can use your iterators in a for loop. Of course you also can use a more functional style if you like.

There are no comments on this comment yet.