3 ms·
Java has try-with-resources and Python has context managers, I wouldn't consider either of them harder to use correctly than defer.
by Macha 5y ago
Java has try-with-resources and Python has context managers, I wouldn't consider either of them harder to use correctly than defer.
- morelisp 5y agoI'm not talking about defer at all. The contrast would be C++'s RAII.