Zac Pullar-Strecker
Zac Pullar-Strecker
Would it be possible to make close fail until the reference count of all symbols in the plugin reached 1, so that the plugin itself was the only structure that...
Could you be a bit more specific about the second point?
I'm not suggesting that it's run automatically by the GC, or in a defer (unfortunately). I'm suggesting that if the needs to be unloaded that the developer will keep track...
goroutines would have to be handled in the same way, requiring the developer to close them. I can understand not wanting to introduce functionality that's easy to misuse. I just...
I took a quick look at `runtime` but couldn't find where exactly the goroutine is created. Are goroutines not closed when they return?
Ok, that's what I thought. I personally think that manual bookkeeping wouldn't be too bad. If you're writing something designed to be loaded/unloaded you're probably going to make sure you...
I have another idea for how this could be solved, it's not simple though and I'm not sure whether it would make sense. Basically I think it would be possible...
@davecheney Any comment on making it a compile-time check?
I don't see how it's like a finaliser, at least in the aspect of non-determinism. It is pretty similar to rust's general approach; I don't think that's a bad thing...
Wouldn't you have to either use code generation or lose type safety though?