2 ms·
Now though this extra work (the thing I got has to have deferred work done when I don't need it any more) is given to your caller. For a File Handle this might
by tialaramex 5y ago
Now though this extra work (the thing I got has to have deferred work done when I don't need it any more) is given to your caller.
For a File Handle this might feel natural, but what about if I hand you a... 3D printer? a Bank Account? a Youtube Video? a Package Delivery? Which of these need some sort of "deferred close" action ? You probably need to read the docs and arrange to close or not close things accordingly right?
You're going to be Wrong by Default again.