|
|
|
|
|
by steveklabnik
2803 days ago
|
|
> the whole point of Rust is effortless correctness and safety. Rust has never been about proving correctness. Yes, correctness is a goal, but it is subservient to other goals, depending on details. Furthermore, it's not clear that this can really be implemented in a reasonable way, see https://news.ycombinator.com/item?id=18175838 > it seems sometimes that Rust management would rather focus on cool new language enhancements In this comment, you're complaining that we haven't implemented a "cool new language enhancement." This is at odds with your desire stated here. |
|
Perhaps I misread this documentation; if so, I don’t think I’d be alone here. I don’t see any particular mention that dropping an fs::File could lead to data loss, and I had generally assumed major edge cases like ‘data loss from a file system library’ would be documented.
[1] https://doc.rust-lang.org/std/fs/struct.File.html
[2] https://doc.rust-lang.org/std/io/trait.Write.html