News for hackers. Stuff that matters.
Re:New case studies about Google’s use of Go by steveklabnik on Monday August 31, 2020 @09:35AM (#24331305)
Rust’s collect will do this for you. It’s even an example in the documentation.
Re:New case studies about Google’s use of Go by tmerr on Monday August 31, 2020 @10:05AM (#24331558)
Thanks! I learned something new.:)

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

Re:New case studies about Google’s use of Go by steveklabnik on Monday August 31, 2020 @10:22AM (#24331724)
I was thinking of the final example in 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.

Re:New case studies about Google’s use of Go by tmerr on Monday August 31, 2020 @12:25PM (#24333002)
No 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.