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

> How about Option and Result?

This is somewhat of the case with many different Result/Error crates doing their own thing. So being in standard lib isn't a guarantee it won't fracture.

> What if Arc and Rc weren't in the standard library, and you had to import them via a crate, and multiple different (incompatible) implementations existed such that you couldn't use them at the same time?

First that's not currently what is happening in Rust. Second, I'd probably use the most popular and active one. Same as in JavaScript or Python.

I think my criteria for what is in the standard lib is following: How often does the domain change? And should it come out of the box?

E.g. are we inventing new ways to parse JSON? Yes ? Out of the standard lib you go. Is ARC/RC being reinvented? No? Go to standard lib.



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

Search: