|
|
|
|
|
by insanitybit
1327 days ago
|
|
Garbage Collection is extremely complicated. It is a whole other program running to manage your memory using extremely complex, hyper optimized algorithms that have lots of best and worst case scenarios depending on which one you use. GC implementations can very easily make code confusing. Consider `finalize` in Java - a destructor that gets called at a completely indeterminate period of time, making it a very confusing tool for resource management. I find Rust trivial by comparison. But isn't that interesting, how we all view simplicity so differently? |
|
https://openjdk.org/jeps/421
One is supposed to use try-with-resources, determinist resource management, or cleaner types.