by hfoiwufasdfw · 2y ago · 0 comments
Rust: drop
C++: T::~T()
C#: using + dispose
Java: try-with + autocloseable, or finally
Go: defer
Haskell: bracket
JavaScript: finally
Python: finally or with + __exit__
Don't like it? Vote for linear types.No comments yet.