On Tue, Oct 18, 2016 at 7:21 AM, T L <tapir....@gmail.com> wrote: > > alternative question, why followings are not accepted in syntax: > > if var x = 5; x > 3 { > _ = x > } > > for var x = range []int{0,1,2} { > _ = x > > } > > switch var x = "abc"; x { > default: > _ = x > } > > switch var x = (interface{}(true)).(type) { > default: > _ = x > }
That syntax adds no functionality and, at least to me, seems uglier and harder to 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.