2 ms·
Sure, something like a .clear or similar but the default behavior of clearing a loaded document by calling open on it is strange compared to what you would expe
by leetrout 7y ago
Sure, something like a .clear or similar but the default behavior of clearing a loaded document by calling open on it is strange compared to what you would expect to happen with “normal” files/streams.
Edit to add:
I think calling write on a loaded document should have been an exceptional case and you should have had to explicitly call something to unload, replace or clear it.