On 2016-08-29 16:59, 'Chris Manghane' via golang-nuts wrote:
I can't explain exactly because my explanation is likely very flawed,
but the logic you are looking for is
in 
https://github.com/golang/go/blob/320ddcf8344beb1c322f3a7f0a251eea5e442a10/src/cmd/compile/internal/gc/inl.go#L186.
Basically, labeled loops are not considered "hairy" by the compiler and
can be inlined.

On the other hand, f1() uses goto to jump back in previous execution path. *shudder*

... hopefully not something to be encouraged.

/Peter

--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to