Was sad to find out today that it's unlikely that it's possible to make it mandatory to enforce manually calling fallible destructors. E.g. something like this won't be possible because Rust doesn't have linear types: #[must_call] fn close(self) -> Result<(), Error>;
-
Show this thread
It's the kind of thing that I've read up on, forgotten about, asked a friend, remembered, and was sad about again. But it's understandable, and the trade-offs make sense. Good writeup here: https://gankro.github.io/blah/linear-rust/ ….
4:27 PM - 26 Feb 2019
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.