2 ms·
> Rust has a nice pretty syntax for iterating: > `for x in &mut something {` and a few paragraph later: > So instead we need to use the ugly for-loop manual
by littlestymaar 4y ago
> Rust has a nice pretty syntax for iterating:
> `for x in &mut something {`
and a few paragraph later:
> So instead we need to use the ugly for-loop manual collection
> `for x in &iterator {`
So, is that syntax pretty or ugly?