On Tue, Mar 20, 2018 at 10:30 AM, Jan Mercl <0xj...@gmail.com> wrote: > On Tue, Mar 20, 2018 at 6:19 PM T L <tapir....@gmail.com> wrote: > >> Yes "1 1 2" is the output of gc, but I can't find any guarantees made for >> this output in Go specification. > > The guarantee was mentioned: LTR evaluation order as seen in the specs here: > https://golang.org/ref/spec#Order_of_evaluation
In this case I don't agree. The order of evaluation rules make it clear that the first output is 1 and the last output is 2, but they do not specify when the value of y is read. Ian -- 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.