3 ms·
So in your opinion in Java land resources are always leaked when some exception occurs? That’s a bit far from the truth
by entangled999 6y ago
So in your opinion in Java land resources are always leaked when some exception occurs?
That’s a bit far from the truth
- jspash 6y agoNo, I think the point was that you would have be aware of these types of cases - and cleaning up after exceptions isn't the only one - and deal with it in your code. Maybe it's trivial to do in Java, but still it has to be done. Whereas with Elixir, it's handled by the way failed processes are handled which is to just "let it die". Another one will come along and replace it. (I'm greatly simplifying here)
- dnautics 6y agoMy point was more: The way to handle resource cleanup is "let it die".