Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Compare Stepanov's brilliant design of the STL to Rust's current reworking of their 'binary search api'. https://github.com/rust-lang/libs-team/issues/81

Maybe 'memory safety' isn't the most important thing in this world. To me, writing software that does useful things in the simplest and most correct way is what matters. I get the feeling it's harder to understand my program's correctness with Rust (I mean algorithmic correctness). The C++ standard library has time and space complexity for every algorithm. I'm not seeing that's the case with Rust (correct me if I'm wrong).



> To me, writing software that does useful things in the simplest and most correct way is what matters.

Seems like a Rust sweet spot. Could you give another example? Here, it would seem this API proposal wasn't adopted because it wasn't fully baked. Isn't that a good thing?

Discussion re: Rust collections: https://doc.rust-lang.org/std/collections/index.html




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

Search: