Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rule of Zero (C++). Parent comment
You can if all "destructors" take care of also closing the internal resources, thus initiating a cascade process of the object owned by them.
But you're right, this leaves the responsibility in the user's side.
> I would give an arm and a leg for RAII on the JVM.
At least they finally added the "using" concept.
In a few more versions maybe they get to add values.
There are no comments on this comment yet.
You can if all "destructors" take care of also closing the internal resources, thus initiating a cascade process of the object owned by them.
But you're right, this leaves the responsibility in the user's side.
> I would give an arm and a leg for RAII on the JVM.
At least they finally added the "using" concept.
In a few more versions maybe they get to add values.