3 ms·
Yes, those are all problems with destructors, but they are well understood. However, in a language I am currently creating, calling a destructor on a partial ob
by ghoward 5y ago
Yes, those are all problems with destructors, but they are well understood. However, in a language I am currently creating, calling a destructor on a partial object is impossible because the object is created in "one" step. In other words, constructors themselves don't have access to the object in a partially created state.
It does make things much easier.