Hacker News new | ask | show | jobs
by aslilac 19 days ago
gotta remember tho that ? didn’t exist in 1.0, and now we can’t break existing code
1 comments

Is that Rust's guarantee? I know that Go avoids breaking changes but I thought they were normal in Rust.
Rust does VERY limited breaking changes, the largest one probably being the `!` type inference change that was very carefully vetted, deemed a necessity and saw contributions to fix the issue in all crates in the official registry
They do break backwards compatibility at edition boundaries, but if they do that too much without a good enough reason they could end up with a python2->python3 situation, with low uptake.
Rust editions exist for handling breaking changes. I dont get why so many people treat them as unthinkable/impossible.
Editions don't version the std lib, so breaking changes to library types aren't generally allowed.
While true, deprecating modules is still possible, if barely, as can be seen by RFC 3550 deprecating legacy ranges in I believe Edition 2027[1]

[1]: https://rust-lang.github.io/rfcs/3550-new-range.html

I'd hope eventually they'll move and we don't end up with the JS situation [1]

[1]: https://news.ycombinator.com/item?id=45447467