3 ms·
How is a new keyword a *major* breaking change? They can only be introduced at edition boundaries, which means they are opt in. And code can be automatically up
by ChrisSD 6y ago
How is a new keyword a *major* breaking change? They can only be introduced at edition boundaries, which means they are opt in. And code can be automatically upgraded to a newer edition by replacing uses of `keyword` with `r#keyword`.
New keywords are a relatively minor inconvenience so long as there aren't too many.
- ynik 6y agoI didn't say a new keyword is major breaking change. New keywords are small breaking changes; I'm saying that the breakage when eliminating the turbofish is even smaller! If you read RFC 2544, some team members were considering removing the turbofish without a new edition, because a crater run did not find any real-world code that would break. The "Bastion of the Turbofish" might literally be the only Rust code in existence that would be broken.