To be honest, since I found out for x in iterator is, basically, while let Some(x) = iterator.next(), I'm using the latter a lot more than the former.

Follow

@juliobiason What's the benefit in having the extra code?

· · Web · 1 · 0 · 0

@mauve Dunno, I just find let Some(x) = iterator.next() clearer, somehow.

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.