logoalt Hacker News

virtualritztoday at 9:59 AM1 replyview on HN

But Rust has editions.

That is a big lever language designers can use if they painted themselves into a corner.


Replies

yccs27today at 11:40 AM

Yes, editions are a great mechanism. It still has its limits, especially if you want easy edition migrations. All existing Rust code assumes it can drop any type whenever it wants, and that is not something you can just change across editions. You have to be very careful with defaults if you don't want conflicts when crossing edition boundaries.

show 1 reply