3 ms·
Wow, that's a pretty nonsensical semantic. Thankfully, Rust is fairly sensible.
by wyager 10y ago
Wow, that's a pretty nonsensical semantic. Thankfully, Rust is fairly sensible.
- Rusky 10y agoIt gets used most to enable returning from the outer function while within loop-body-like procs. Rust iterators used to be like that too (pre-1.0), but they switched to the current style to get rid of that complexity.
- steveklabnik 10y agoIt makes more sense in-context; I did Ruby for years and never had to think about this once.