3 ms·
One difference is that inlining is a safe optimization in most contexts. Parallelizing a goroutine is not safe if the goroutine shares memory. Obviously that's
by ruggeri 10y ago
One difference is that inlining is a safe optimization in most contexts.
Parallelizing a goroutine is not safe if the goroutine shares memory. Obviously that's not the default Go style, but sometimes sharing state is unavoidable.
So that would be one point in favor of different syntax.