On Thursday, May 4, 2017 at 12:17:13 AM UTC+8, Jan Mercl wrote: > > On Wed, May 3, 2017 at 6:00 PM T L <tapi...@gmail.com <javascript:>> > wrote: > > > Just like what expected for constants. > > For constants it's expected to reuse the last iota expression when absent. > Do you propose that > > var ( > a = iota > b > ) > > will become valid and initialize a to 0 and b to 1? > > If so, is it valid and what shall happen when one writes > > var ( > a = iota > b > s string > d > ) > > ? >
The rule is same for constants: d is also string, as s. > > If it's not valid, why? > > > -- > > -j > -- 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.