zlacker

[return to "The Downsides of Go's Goroutines"]
1. bb88+jb[view] [source] 2023-12-31 08:02:55
>>djha-s+(OP)
> (If they did, the unwinding would close the file handle and the other coroutine might then return to that stack frame, only to find the file handle already closed.)

The programming language is not supposed to keep state of OS level resources. You are. The gray beard in me would just say "Duh".

To my knowledge, python/C/C++/Java/Go doesn't do this automatically. You're responsible for that.

◧◩
2. jayd16+pb[view] [source] 2023-12-31 08:04:41
>>bb88+jb
Why not?
[go to top]