logoalt Hacker News

NobodyNadalast Tuesday at 7:42 PM1 replyview on HN

Rust tends to prefer reusing keywords (in unambiguously different contexts) rather than introducing new ones, because adding a new keyword is a backwards compatibility break that requires a new language edition and creates migration pain for anyone who had an identifier with the same name as the new keyword.


Replies

steveklabniklast Tuesday at 7:51 PM

While that's true, all three of these uses pre-date Rust 1.0, so there was total freedom in this case.