3 ms·
Thanks! I learned something new.:) https://doc.rust-lang.org/stable/rust-by-example/error/iter_result.html#fail-the-entire-operation-with-collect https://doc.r
by tmerr 6y ago
Thanks! I learned something new.:)
https://doc.rust-lang.org/stable/rust-by-example/error/iter_result.html#fail-the-entire-operation-with-collect https://doc.rust-lang.org/stable/rust-by-example/error/iter_...
This is easy to miss if you are mainly reading reference docs. I probably read the getting started guide at a time before there was a section on it.
My other comment in this thread comes to mind
https://news.ycombinator.com/item?id=24300057 https://news.ycombinator.com/item?id=24300057
- steveklabnik 6y agoI was thinking of the final example in https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#examples-25 https://doc.rust-lang.org/stable/std/iter/trait.Iterator.htm... , glad we have it in both places! I don’t personally really agree with what you’ve said, but that’s fine. Different people perceive things differently.
- tmerr 6y agoNo problems. There are enough dimensions involved in what makes a language good that Im pretty sure I could rationalize why any language is better than another, measured along only one of them. Robustness. Speed. Simplicity. Easiness. Conciseness. Writability. Readability. Hard to tell which are independent vs correlated, let alone how they factor into productivity. And productivity is also a function of the kind of problem you work on.