[go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread Tong Sun
I have no problem assigning iota to variables. Can you elaborate a bit pls? 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 emai

[go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread T L
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 U

[go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread Tong Sun
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 U

[go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread T L
On Wednesday, May 3, 2017 at 10:45:09 PM UTC+8, Tong Sun 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 variab

Re: [go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread 'Axel Wagner' via golang-nuts
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 ar

Re: [go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread T L
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 h

Re: [go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread T L
On Wednesday, May 3, 2017 at 10:59:34 PM UTC+8, T L 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 >> jus

Re: [go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread 'Axel Wagner' via golang-nuts
On Wed, May 3, 2017 at 4:59 PM, T L 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 thing