logoalt Hacker News

pdpitoday at 12:35 PM1 replyview on HN

Not that I need to tell you of all people, but I do find that Rust's editions system is one of the better ways to minimise this issue.


Replies

kibwentoday at 1:23 PM

Indeed, editions are brilliant for making relatively large changes in a way that fully preserves backwards compatibility for codebases in the wild, but the existence of editions doesn't mean that Rust is exempt from sometimes desiring to make minor breaking changes in new versions for all editions. For that, it has the mechanism of future incompatibility lints, to give people ample advance warning: https://doc.rust-lang.org/rustc/lints/index.html#future-inco...