On Thursday, 1 March 2018 01:45:44 UTC, Ian Lance Taylor wrote: > > It was done on purpose, which is to say that there never seemed to be > a reason to add it. It rarely comes up in practice, and it's not > obvious whether it's better to support `v1, v2 :+ inc1, inc2` or `v1, > v2 += inc` (which adds `inc` to both `v1` and `v2`). > > Ian >
v1, v2 += inc1, inc2 please matches the pattern for multiple assignment already present .. isn't the EBNF at https://golang.org/ref/spec#Assignments currently wrong - in that it allows what is currently disallowed .. the correct would be (roughly) Assignment = ExpressionList "=" ExpressionList Assignment_operation = Expression assign_op Expression I see the follow on text corrects and clarifies this, but maybe it would be better to just split the EBNF def into two lines -- 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.