On Wed, May 3, 2017 at 4:59 PM, T L <tapir....@gmail.com> wrote: > > On Wednesday, May 3, 2017 at 10:51:00 PM UTC+8, Axel Wagner wrote: >> >> I think it has been pointed out to you before, that go isn't a project >> where "The request is not essential, but any harm of it?" is an acceptable >> justification to add things. >> >> Or, to put it another way: Any addition has a harm, which is, that it's >> complicating the language. You need to make your argument of why these >> costs are justified. >> > > isn't consistent a good argument? :) >
In this case, not particularly. const and var declarations already are incredibly different. And there is a much clearer use for iota for const declarations, than for var. > > >> >> On Wed, May 3, 2017 at 4:45 PM, Tong Sun <sunto...@gmail.com> wrote: >> >>> Oh, I misread the title. >>> >>> But iota only change while defining constance. Assigning them to >>> variables will either get zero all the time, or Go need to define a very >>> complicated theme how iota change while defining variables, very >>> complicated I assume. >>> >>> >>> >>> On Wednesday, May 3, 2017 at 10:39:47 AM UTC-4, T L wrote: >>>> >>>> >>>> >>>> On Wednesday, May 3, 2017 at 10:27:47 PM UTC+8, Tong Sun wrote: >>>>> >>>>> I have no problem assigning iota to variables. Can you elaborate a bit >>>>> pls? >>>>> >>>> >>>> package main >>>> >>>> var a = iota // undefined: iota >>>> >>>> func main(){ >>>> var a = iota // undefined: iota >>>> } >>>> >>>> >>>>> >>>>> On Wednesday, May 3, 2017 at 9:19:46 AM UTC-4, T L wrote: >>>>>> >>>>>> . >>>>>> >>>>> -- >>> 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...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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. > -- 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.