3 ms·
This is an actual drawback of not having deterministic destruction. This would not be a problem in C++ or Swift.
by Camillo 6y ago
This is an actual drawback of not having deterministic destruction. This would not be a problem in C++ or Swift.
- The_rationalist 6y agoExactly. Yet Java has autocloseable without having deterministic destruction
- masklinn 6y agoAutoCloseable is the same as Python's __exit__, it exists as a hook to try-with-resource in the same way __exit__ is a hook for `with`.