Hacker News new | past | comments | ask | show | jobs | submit login

Wow, that's a pretty nonsensical semantic. Thankfully, Rust is fairly sensible.



It makes more sense in-context; I did Ruby for years and never had to think about this once.


It 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: