3 ms·
I’m actually glad the Move and Leak didn’t get in. They both have fairly niche usecases but they’d have to be spattered all over basically all rust code.
by nynx 3y ago
I’m actually glad the Move and Leak didn’t get in. They both have fairly niche usecases but they’d have to be spattered all over basically all rust code.
- jeff-davis 3y agoWhy do you say they'd have to be splattered over basically all rust code? The post compares them to Send and Sync, and I don't have to use those very frequently (though I don't write a lot of rust code, either).
- nynx 3y agoPeople use Arc and Rc all the time, which would need +?Leak annotations. Things like Option would, I think, also need + ?Move + ?Leak annotations.
- bryanlarsen 3y agoIf it is an unobtrusive as the existing ?Trait annotations such as ?Sized it's not very much of a burden.
- deleted 3y ago[deleted]
- mlindner 3y agoBecause features are always used in the worst (most evil?) way possible by inexperienced programmers. One of the benefits of Rust is that it makes many evil things either impossible or easily detectable.