4 ms·
In Rust, the default behavior when using resources like any other type is correct. You have to introduce a specific type to leak them. In Python, you need to h
by lionkor 2y ago
In Rust, the default behavior when using resources like any other type is correct. You have to introduce a specific type to leak them.
In Python, you need to handle resources differently and introduce a language feature to not leak them.
That's the difference you're pointing out.