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

2017-05-04 Thread roger peppe
On 4 May 2017 at 03:52, T L  wrote:
>
>
> On Thursday, May 4, 2017 at 1:21:52 AM UTC+8, Axel Wagner wrote:
>>
>> On Wed, May 3, 2017 at 7:04 PM, T L  wrote:
>>>
>>>
>>>
>>> On Thursday, May 4, 2017 at 12:46:47 AM UTC+8, Axel Wagner wrote:

 but
 const (
 a = iota
 b
 s string
 d
 )
 is not a valid declaration. You can't say "the rule is the same for
 constants".
>>>
>>>
>>> For the same rule, I mean just copying the corresponding part from last
>>> line.
>>> Yes, declared constant must be assigned. This is an unrelated rule for
>>> this topic.
>>
>>
>> No, it is not an unrelated rule. Because it means that "just like for
>> consts" isn't an argument. You need, at the very least, answer the valid
>> question ("what happens with that var-declaration and why?") raised about
>> your proposal. Or better yet, realize that var and const declarations behave
>> very differently and thus "consistency" isn't an argument to add something
>> otherwise useless.
>>
>
> ok, I admit the rule difference between variable and constant declaration
> does matter:
>
> var (
> a int = iota
> b// should autocomplete
> c int// but this? "c int" is already legal.
> )

I don't think I've ever come across a case where I want to assign
increasing-by-one values to adjacent variables. Have you?

-- 
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.


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

2017-05-03 Thread T L


On Thursday, May 4, 2017 at 1:21:52 AM UTC+8, Axel Wagner wrote:
>
> On Wed, May 3, 2017 at 7:04 PM, T L  
> wrote:
>
>>
>>
>> On Thursday, May 4, 2017 at 12:46:47 AM UTC+8, Axel Wagner wrote:
>>>
>>> but
>>> const (
>>> a = iota
>>> b
>>> s string
>>> d
>>> )
>>> is not a valid declaration. You can't say "the rule is the same for 
>>> constants".
>>>
>>
>> For the same rule, I mean just copying the corresponding part from last 
>> line.
>> Yes, declared constant must be assigned. This is an unrelated rule for 
>> this topic.
>>
>
> No, it is not an unrelated rule. Because it means that "just like for 
> consts" isn't an argument. You need, at the very least, answer the valid 
> question ("what happens with that var-declaration and why?") raised about 
> your proposal. Or better yet, realize that var and const declarations 
> behave very differently and thus "consistency" isn't an argument to add 
> something otherwise useless.
>
>
ok, I admit the rule difference between variable and constant declaration 
does matter:

var (
a int = iota
b// should autocomplete
c int// but this? "c int" is already legal.
)

 

>
>>  
>>
>>>
>>> Again: const-declarations and variable declarations are very different. 
>>> You can not argue "it's the same"; it's not.
>>>
>>> On Wed, May 3, 2017 at 6:28 PM, T L  wrote:
>>>


 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  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...@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...@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.


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

2017-05-03 Thread 'Axel Wagner' via golang-nuts
On Wed, May 3, 2017 at 7:04 PM, T L  wrote:

>
>
> On Thursday, May 4, 2017 at 12:46:47 AM UTC+8, Axel Wagner wrote:
>>
>> but
>> const (
>> a = iota
>> b
>> s string
>> d
>> )
>> is not a valid declaration. You can't say "the rule is the same for
>> constants".
>>
>
> For the same rule, I mean just copying the corresponding part from last
> line.
> Yes, declared constant must be assigned. This is an unrelated rule for
> this topic.
>

No, it is not an unrelated rule. Because it means that "just like for
consts" isn't an argument. You need, at the very least, answer the valid
question ("what happens with that var-declaration and why?") raised about
your proposal. Or better yet, realize that var and const declarations
behave very differently and thus "consistency" isn't an argument to add
something otherwise useless.


>
>
>>
>> Again: const-declarations and variable declarations are very different.
>> You can not argue "it's the same"; it's not.
>>
>> On Wed, May 3, 2017 at 6:28 PM, T L  wrote:
>>
>>>
>>>
>>> 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  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...@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.


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

2017-05-03 Thread T L


On Thursday, May 4, 2017 at 12:46:47 AM UTC+8, Axel Wagner wrote:
>
> but
> const (
> a = iota
> b
> s string
> d
> )
> is not a valid declaration. You can't say "the rule is the same for 
> constants".
>

For the same rule, I mean just copying the corresponding part from last 
line.
Yes, declared constant must be assigned. This is an unrelated rule for this 
topic.

 

>
> Again: const-declarations and variable declarations are very different. 
> You can not argue "it's the same"; it's not.
>
> On Wed, May 3, 2017 at 6:28 PM, T L  
> wrote:
>
>>
>>
>> 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  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...@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.


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

2017-05-03 Thread 'Axel Wagner' via golang-nuts
but
const (
a = iota
b
s string
d
)
is not a valid declaration. You can't say "the rule is the same for
constants".

Again: const-declarations and variable declarations are very different. You
can not argue "it's the same"; it's not.

On Wed, May 3, 2017 at 6:28 PM, T L  wrote:

>
>
> 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  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.
>

-- 
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.


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

2017-05-03 Thread T L


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  
> 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.


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

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 6:00 PM T L  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
)

?

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.


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

2017-05-03 Thread T L


On Wednesday, May 3, 2017 at 11:39:29 PM UTC+8, Jan Mercl wrote:
>
> On Wed, May 3, 2017 at 5:07 PM T L  
> wrote:
>
> > The complexity is the same as iota in constant declarations. 
>
> How can that be claimed when still nobody ever seen any specification of 
> what var foo = iota shall do at all? The space of possible semantics is 
> unbounded. The sane subspace seems to me to be of zero volume, but will you 
> please just explain what you expect from assigning iota to a variable?
>

Just like what expected for constants.

var (
  a = iota // a == 0
  b = iota // b == 1
)
 

>
> Don't suppose telepathy exists, thank you ;-)
>
> -- 
>
> -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.


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

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 5:07 PM T L  wrote:

> The complexity is the same as iota in constant declarations.

How can that be claimed when still nobody ever seen any specification of
what var foo = iota shall do at all? The space of possible semantics is
unbounded. The sane subspace seems to me to be of zero volume, but will you
please just explain what you expect from assigning iota to a variable?

Don't suppose telepathy exists, thank you ;-)

-- 

-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.


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

2017-05-03 Thread Ayan George


On 05/03/2017 10:38 AM, T L wrote:
> 
> 
> On Wednesday, May 3, 2017 at 9:28:28 PM UTC+8, Jan Mercl wrote:
> 
> On Wed, May 3, 2017 at 3:19 PM T L  
> wrote:
> 
> Why would you want to assign iota to a variable? What value should 
> iota in such case have?
> 
> 
> The request is not essential, but any harm of it?
> 

Can you show an example (some preferably some mocked up Go code) of how
this can be useful?

-- 
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.


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

2017-05-03 Thread T L


On Wednesday, May 3, 2017 at 10:53:42 PM UTC+8, Jan Mercl wrote:
>
> On Wed, May 3, 2017 at 4:38 PM T L  
> wrote:
>
> > The request is not essential, but any harm of it?
>
> How can anybody know that if nobody knows what it shall actually do and 
> what will be the impact on the complexity of the specification and 
> implementation?
>

The complexity is the same as iota in constant declarations. 


> -- 
>
> -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.


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

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 4:38 PM T L  wrote:

> The request is not essential, but any harm of it?

How can anybody know that if nobody knows what it shall actually do and
what will be the impact on the complexity of the specification and
implementation?

-- 

-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.


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

2017-05-03 Thread T L


On Wednesday, May 3, 2017 at 9:28:28 PM UTC+8, Jan Mercl wrote:
>
> On Wed, May 3, 2017 at 3:19 PM T L  
> wrote:
>
> Why would you want to assign iota to a variable? What value should iota in 
> such case have?
>
>
The request is not essential, but any harm of it?
 

>
> -- 
>
> -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.


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

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 3:19 PM T L  wrote:

Why would you want to assign iota to a variable? What value should iota in
such case have?


-- 

-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.


Re: [go-nuts] why "iota"?

2016-11-10 Thread Michael Jones
…I was not correcting you. I was saying that the whole world appreciates the 
strength of Russian math education as consistently demonstrated in the 
International Mathematical Olympiad. (This is the Olympics that excites me, the 
place for people who can wrestle with exponential generating functions as ably 
as people in the other Olympics can throw a stick or kick a ball.)

поздравления

-Original Message-
From: Konstantin Khomoutov <flatw...@users.sourceforge.net>
Date: Thursday, November 10, 2016 at 7:28 AM
To: Michael Jones <michael.jo...@gmail.com>
Cc: Konstantin Khomoutov <flatw...@users.sourceforge.net>, Dan Kortschak 
<dan.kortsc...@adelaide.edu.au>, Marvin Renich <m...@renich.org>, golang-nuts 
<golang-nuts@googlegroups.com>
Subject: Re: [go-nuts] why "iota"?

On Thu, 10 Nov 2016 06:43:09 -0800
Michael Jones <michael.jo...@gmail.com> wrote:

> “…on our math high school courses.” 
> 
> Which I imagine are like my college math courses!

Oh, yes, I meant college; silly me ;-)

The problem is that we have somewhat incompatible denominations for
these education-related terms, and what americans call "high school" is
called with what translates like "middle school" here.



-- 
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.


Re: [go-nuts] why "iota"?

2016-11-10 Thread Konstantin Khomoutov
On Thu, 10 Nov 2016 06:43:09 -0800
Michael Jones  wrote:

> “…on our math high school courses.” 
> 
> Which I imagine are like my college math courses!

Oh, yes, I meant college; silly me ;-)

The problem is that we have somewhat incompatible denominations for
these education-related terms, and what americans call "high school" is
called with what translates like "middle school" here.

-- 
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.


Re: [go-nuts] why "iota"?

2016-11-10 Thread Rob Pike
You had math in high school?

-rob


On Thu, Nov 10, 2016 at 6:43 AM, Michael Jones <michael.jo...@gmail.com>
wrote:

> “…on our math high school courses.”
>
> Which I imagine are like my college math courses!
>
>
> -Original Message-
> From: <golang-nuts@googlegroups.com> on behalf of Konstantin Khomoutov <
> flatw...@users.sourceforge.net>
> Date: Thursday, November 10, 2016 at 4:09 AM
> To: Dan Kortschak <dan.kortsc...@adelaide.edu.au>
> Cc: Marvin Renich <m...@renich.org>, golang-nuts <
> golang-nuts@googlegroups.com>
> Subject: Re: [go-nuts] why "iota"?
>
> On Thu, 10 Nov 2016 10:27:49 +1030
> Dan Kortschak <dan.kortsc...@adelaide.edu.au> wrote:
>
> > On Wed, 2016-11-09 at 09:30 -0500, Marvin Renich wrote:
> > > Iota is pronounced eye-OH-tuh.
> >
> > Or yoh-ta (like Yoda, but with s/d/t/) if not in America.
> >
>
> I concur that here in Russia we taught to spell it yoh-ta on our math
> high school courses.
>
> --
> 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.
>

-- 
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.


Re: [go-nuts] why "iota"?

2016-11-10 Thread Michael Jones
“…on our math high school courses.” 

Which I imagine are like my college math courses!


-Original Message-
From: <golang-nuts@googlegroups.com> on behalf of Konstantin Khomoutov 
<flatw...@users.sourceforge.net>
Date: Thursday, November 10, 2016 at 4:09 AM
To: Dan Kortschak <dan.kortsc...@adelaide.edu.au>
Cc: Marvin Renich <m...@renich.org>, golang-nuts <golang-nuts@googlegroups.com>
Subject: Re: [go-nuts] why "iota"?

On Thu, 10 Nov 2016 10:27:49 +1030
Dan Kortschak <dan.kortsc...@adelaide.edu.au> wrote:

> On Wed, 2016-11-09 at 09:30 -0500, Marvin Renich wrote:
> > Iota is pronounced eye-OH-tuh.
>
> Or yoh-ta (like Yoda, but with s/d/t/) if not in America.
>

I concur that here in Russia we taught to spell it yoh-ta on our math
high school courses.

-- 
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.


Re: [go-nuts] why "iota"?

2016-11-10 Thread Konstantin Khomoutov
On Thu, 10 Nov 2016 10:27:49 +1030
Dan Kortschak  wrote:

> On Wed, 2016-11-09 at 09:30 -0500, Marvin Renich wrote:
> > Iota is pronounced eye-OH-tuh.
>
> Or yoh-ta (like Yoda, but with s/d/t/) if not in America.
>

I concur that here in Russia we taught to spell it yoh-ta on our math
high school courses.

-- 
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.


Re: [go-nuts] why "iota"?

2016-11-09 Thread 'David Chase' via golang-nuts
If you're looking for Greek pronunciation of Greek letters, there's this:
https://www.youtube.com/watch?v=vPEtRc05G7Q
which agrees with what I learned in high school (and what is now stuck in 
my head).

On Saturday, April 27, 2013 at 8:52:36 PM UTC-4, mb0 wrote:
>
> > Wikipedia says it's a greek alphabet that looks like i, and I am seeing 
> > APL used iota for something like range() in python, which makes 
> > go-lang's use of iota a bit different from that in APL. 
> > 
> > iota sounds cool, and I like it, but I wonder if that coolness was the 
> > primary reason behind the name of an important language construct, or 
> > there are some relevant legacy behind the character. 
>
> from http://en.wiktionary.org/wiki/iota#Noun 
> ... 2. A jot; a very small, inconsiderable quantity. 
>
> hope that helps to clarifies it 
>
>

-- 
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.


Re: [go-nuts] why "iota"?

2016-11-09 Thread Konstantin Khomoutov
On Wed, 09 Nov 2016 07:02:38 -0800
Michael Jones  wrote:

[...]
> According to the OED, the meaning of iota as “a small or
> insignificant quantity” derived from iota being the smallest letter
> in the Greek alphabet (i.e., physical orthography.)
> 
> P.S. Yes, this is a little bit more detailed than was necessary…but…
> many of us are working hard to find joy today.

  Make Iota great again!

P.S.
Thanks for your write up. ;-)

-- 
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.


Re: [go-nuts] why "iota"?

2016-11-09 Thread Rob Pike
It is my understanding that the use of iota in the phrase "not one iota of
difference" relates to the epistemological debate about the difference of
the (Greek) terms homoousian and homoiousian.

But yes, Ken suggested iota for the counter and, since all three of us
(Ken, Robert, Rob) had implemented APL interpreters, it seemed a perfect
thing to us, however insignificant iotas may or may not be in gnosiology.

-rob


On Wed, Nov 9, 2016 at 7:02 AM, Michael Jones <michael.jo...@gmail.com>
wrote:

> Iota is indeed a Greek letter, the one from which western alphabets
> inherited the letter ‘i’ (⍳). If you read Comparative Grammar of Greek
> and Latin (Darling, 1933) or the New Comparative Grammar of Greek and Latin
> (Sihler), you’ll discover that iota and its friend upsilon share quite a
> bit of history. They both come from Phoenician, and they both brought the
> magic now exhibited by the modern English ‘Y’ (Υ), of having *both*
> consonantal and nonconsonantal forms.
>
>
>
> This was one of the great mysteries from my childhood, where I was taught
> in school that the English vowels were A, E, I, O, U, and sometimes, Y.
> That baffled me, how Y could be a “sometimes” vowel, as if that made it
> “less than a real vowel.” That seemed crazy to me. Certainly Superman was
> not less of a superman because he was sometimes Clark Kent. In fact, I
> tried to recruit people to my Vowel Movement to get Y classified as a vowel
> that was sometimes a consonant, more in keeping with its gravitas from the
> special vowel role. Amazingly nobody in my school cared and no teacher
> could explain the dual status of ‘Y’.
>
>
>
> You can imagine my delight to learn that I and Y came to English from
> Phoenicia by way of Greece and in both languages they had this kind of dual
> citizenship—but in both they were regarded as vowels with specialness. So
> the vowel movement turns out to be historical fact and not just a little
> boys hope.
>
>
>
> Iota’s role in APL as an index generator is also central as the basis of
> many vector functions—a typical Go loop on an index variable “for i:=0; I <
> N; i++{x[i] = F(y[i])}”is natural in J or APL as “F()” mapped across “iota
> N.” The index generator role, “⍳ 5” -> “1 2 3 4 5” is the inspiration for
> Go’s iota in blocks of constant declarations. It is very common in C and
> C++ CPP headers to see long chains of definitions like:
>
>
>
> #define ConditionA 0
>
> #define ConditionB 1
>
> #define ConditionC 2
>
> :
>
>
>
> and the Go team (Ken Thompson IIRC) saw that “0 1 2…” and thought of iota.
> This was great!
>
>
>
> Pronunciation is simply the natural way, if you’re Phoenician or Greek. If
> not, have a listen at the Oxford website, which has “real” and Americanized
> pronunciations:
>
>
>
> https://painfulenglish.wordpress.com/2013/08/03/how-
> to-pronounce-greek-letters-in-english/
>
> http://www.oxfordlearnersdictionaries.com/definition/english/iota
>
>
>
> According to the OED, the meaning of iota as “a small or insignificant
> quantity” derived from iota being the smallest letter in the Greek alphabet
> (i.e., physical orthography.)
>
>
>
> P.S. Yes, this is a little bit more detailed than was necessary…but…many
> of us are working hard to find joy today.
>
>
>
> *From: *<golang-nuts@googlegroups.com> on behalf of <liyu1...@gmail.com>
> *Date: *Tuesday, November 8, 2016 at 10:04 PM
> *To: *golang-nuts <golang-nuts@googlegroups.com>
> *Subject: *Re: [go-nuts] why "iota"?
>
>
>
> I don`t know how to speak 'iota' too,I have to say "i---o---t---a" when I
> talk with somebody.
>
> 在 2013年4月28日星期日 UTC+8上午8:52:36,mb0写道:
>
> > Wikipedia says it's a greek alphabet that looks like i, and I am seeing
> > APL used iota for something like range() in python, which makes
> > go-lang's use of iota a bit different from that in APL.
> >
> > iota sounds cool, and I like it, but I wonder if that coolness was the
> > primary reason behind the name of an important language construct, or
> > there are some relevant legacy behind the character.
>
> from http://en.wiktionary.org/wiki/iota#Noun
> ... 2. A jot; a very small, inconsiderable quantity.
>
> hope that helps to clarifies it
>
> --
> 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
> "gol

Re: [go-nuts] why "iota"?

2016-11-09 Thread Michael Jones
Iota is indeed a Greek letter, the one from which western alphabets inherited 
the letter ‘i’ (⍳). If you read Comparative Grammar of Greek and Latin 
(Darling, 1933) or the New Comparative Grammar of Greek and Latin (Sihler), 
you’ll discover that iota and its friend upsilon share quite a bit of history. 
They both come from Phoenician, and they both brought the magic now exhibited 
by the modern English ‘Y’ (Υ), of having both consonantal and nonconsonantal 
forms. 

 

This was one of the great mysteries from my childhood, where I was taught in 
school that the English vowels were A, E, I, O, U, and sometimes, Y. That 
baffled me, how Y could be a “sometimes” vowel, as if that made it “less than a 
real vowel.” That seemed crazy to me. Certainly Superman was not less of a 
superman because he was sometimes Clark Kent. In fact, I tried to recruit 
people to my Vowel Movement to get Y classified as a vowel that was sometimes a 
consonant, more in keeping with its gravitas from the special vowel role. 
Amazingly nobody in my school cared and no teacher could explain the dual 
status of ‘Y’.

 

You can imagine my delight to learn that I and Y came to English from Phoenicia 
by way of Greece and in both languages they had this kind of dual 
citizenship—but in both they were regarded as vowels with specialness. So the 
vowel movement turns out to be historical fact and not just a little boys hope.

 

Iota’s role in APL as an index generator is also central as the basis of many 
vector functions—a typical Go loop on an index variable “for i:=0; I < N; 
i++{x[i] = F(y[i])}”is natural in J or APL as “F()” mapped across “iota N.” The 
index generator role, “⍳ 5” -> “1 2 3 4 5” is the inspiration for Go’s iota in 
blocks of constant declarations. It is very common in C and C++ CPP headers to 
see long chains of definitions like:

 

#define ConditionA 0

#define ConditionB 1

#define ConditionC 2

:

 

and the Go team (Ken Thompson IIRC) saw that “0 1 2…” and thought of iota. This 
was great!

 

Pronunciation is simply the natural way, if you’re Phoenician or Greek. If not, 
have a listen at the Oxford website, which has “real” and Americanized 
pronunciations:

 

https://painfulenglish.wordpress.com/2013/08/03/how-to-pronounce-greek-letters-in-english/

http://www.oxfordlearnersdictionaries.com/definition/english/iota

 

According to the OED, the meaning of iota as “a small or insignificant 
quantity” derived from iota being the smallest letter in the Greek alphabet 
(i.e., physical orthography.)

 

P.S. Yes, this is a little bit more detailed than was necessary…but…many of us 
are working hard to find joy today.

 

From: <golang-nuts@googlegroups.com> on behalf of <liyu1...@gmail.com>
Date: Tuesday, November 8, 2016 at 10:04 PM
To: golang-nuts <golang-nuts@googlegroups.com>
Subject: Re: [go-nuts] why "iota"?

 

I don`t know how to speak 'iota' too,I have to say "i---o---t---a" when I talk 
with somebody. 

在 2013年4月28日星期日 UTC+8上午8:52:36,mb0写道:

> Wikipedia says it's a greek alphabet that looks like i, and I am seeing 
> APL used iota for something like range() in python, which makes 
> go-lang's use of iota a bit different from that in APL. 
> 
> iota sounds cool, and I like it, but I wonder if that coolness was the 
> primary reason behind the name of an important language construct, or 
> there are some relevant legacy behind the character. 

from http://en.wiktionary.org/wiki/iota#Noun 
... 2. A jot; a very small, inconsiderable quantity. 

hope that helps to clarifies it 

-- 
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.


Re: [go-nuts] why "iota"?

2016-11-09 Thread John McKown
On Wed, Nov 9, 2016 at 12:04 AM,  wrote:

> I don`t know how to speak 'iota' too,I have to say "i---o---t---a" when I
> talk with somebody.
>
>
​Being a crude Texan, I pronounce it like "eye ough ta"​

​(which is also how I pronounce "i ought to" because, well, I'm a Texan!
[grin]). BTW, it's also the 9th letter in the Greek alphabet.​
​ref: https://www.youtube.com/watch?v=0T1sUNyqWPo which is not how I
pronounce it, but more like Marvin says.​


-- 
Heisenberg may have been here.

Unicode: http://xkcd.com/1726/

Maranatha! <><
John McKown

-- 
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.


Re: [go-nuts] why "iota"?

2016-11-09 Thread Marvin Renich
* liyu1...@gmail.com  [161109 08:26]:
> I don`t know how to speak 'iota' too,I have to say "i---o---t---a" when I 
> talk with somebody. 
> 
> 在 2013年4月28日星期日 UTC+8上午8:52:36,mb0写道:
> >
> > > Wikipedia says it's a greek alphabet that looks like i, and I am seeing 
> > > APL used iota for something like range() in python, which makes 
> > > go-lang's use of iota a bit different from that in APL. 
> > > 
> > > iota sounds cool, and I like it, but I wonder if that coolness was the 
> > > primary reason behind the name of an important language construct, or 
> > > there are some relevant legacy behind the character. 
> >
> > from http://en.wiktionary.org/wiki/iota#Noun 
> > ... 2. A jot; a very small, inconsiderable quantity. 
> >
> > hope that helps to clarifies it 

Speaking as a former APL language implementer, I think the Go use of
iota is very much in line with the APL definition:  it produces
successive integers.  APL, being an array oriented language, produces
them all at once, but the basic idea is the same.

In APL, ⍳7 produces the vector (one-dimensional array) 1 2 3 4 5 6 7.

Iota is pronounced eye-OH-tuh.

...Marvin

-- 
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.


Re: [go-nuts] why "iota"?

2016-11-09 Thread liyu1259
I don`t know how to speak 'iota' too,I have to say "i---o---t---a" when I 
talk with somebody. 

在 2013年4月28日星期日 UTC+8上午8:52:36,mb0写道:
>
> > Wikipedia says it's a greek alphabet that looks like i, and I am seeing 
> > APL used iota for something like range() in python, which makes 
> > go-lang's use of iota a bit different from that in APL. 
> > 
> > iota sounds cool, and I like it, but I wonder if that coolness was the 
> > primary reason behind the name of an important language construct, or 
> > there are some relevant legacy behind the character. 
>
> from http://en.wiktionary.org/wiki/iota#Noun 
> ... 2. A jot; a very small, inconsiderable quantity. 
>
> hope that helps to clarifies it 
>
>

-- 
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.