Re:Rust in the Android Platform
by 3836293648 on Wednesday April 07, 2021 @12:10PM
(#26726959)
How is calling drop any different from calling close?
For the practical case is not different. But is not coherent. It’s weird. And opening/closing files is an historical concept.
Why “drop” is the opposite of “open”? Let’s change “open” for “lift” or “notdrop”.
IDK. I miss variadic functions (not macros) and being able to do certain simple things without resorting to strange paradigms, like arbitrarily closing an std::fs::File without needing to go out of scope or calling drop. Things like that.