You can statically analyze for leaks.
This is not fucking rocket science
> That's why an integrated language mechanism preventing such leaks is much better.
No categorical difference, except one is opt-in. You can even design your static analyzer so it analyses the code of dependencies that haven't opted in.
Anyways: its possible, I am building it as a very side project.
github.com/ityonemo/clr