Article describes try/finally as a hack to get the effect of defer, but it looks to me like it's the other way around? Try/finally is more traditional, in one form or another.
I built a library to do something similar: https://www.npmjs.com/package/yaplib
defer is the thing I miss the most coming from Go
Would call stack/source map reasonably work with this?
Article describes try/finally as a hack to get the effect of defer, but it looks to me like it's the other way around? Try/finally is more traditional, in one form or another.