3 ms·
Like how compilers can choose to not actually not emit a method call when you have a method call in your source code and instead just inline the code from the m
by chrisseaton 8y ago
Like how compilers can choose to not actually not emit a method call when you have a method call in your source code and instead just inline the code from the method, could the Go compiler chose to not actually write to a channel and just instead run the action of the goroutine where it receive from the channel at that point? The scheduler semantics would allow that wouldn't they?