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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to