Returning from main.main is equivalent to calling os.Exit--this is in
the spec. Calling runtime.Goexit from the main goroutine is not
equivalent to os.Exit--the spec doesn't say anything about this. So
this is a feature.
Ian
I think runtime.Goexit definitely has its uses and I think the cost of
providing it is low. I think more people are surprised by the fact that
returning from main.main terminates their program even if there are
running goroutines than are surprised by the fact that calling
runtime.Goexit from a callee of main.main does not terminate their
program.
Ian
Not after I fix Goexit.