3 ms·
The higher level procedure which uses these three functions could use defer to ensure that the closing function is called.
by kazinator 8y ago
The higher level procedure which uses these three functions could use defer to ensure that the closing function is called.
- dana321 8y agoI would have to re-arrange my call stack so that the read or write functions would be inside the open statement, then it would close it at the end anyway so its kind of pointless for my uses. I try and totally avoid panics and never throw them unless its at some initial parser stage. But this is made me rethink the structure of how some of my tags operate in my interpreter / transpiler.