News for hackers. Stuff that matters.
Re:Rust – A hard decision pays off by lijogdfljk on Wednesday August 24, 2022 @04:15PM (#32585156)
Fair, but i'd probably write your iterator example differently. Though, besides the point perhaps - as i agree there are plenty of cases where imperative approaches are cleaner.

I however will often have a dozen maps/filters/etc and that style in imperative is what, nesting repeatedly or using `continue`. Meh.

If your Iterator consists of a single `filter_map` i can see why you don't get much value out of them in that case. It's because.. well, there's not much value to get out of it.

There are no comments on this comment yet.