February 11, 2011
What the hell does "to!" have to do with anything. Disregard my last post, it's obviously 3 AM and I'm talking gibberish.

In any case,
alias iota range;

Problem solved for me!
February 11, 2011
"Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.1476.1297391467.4748.digitalmars-d@puremagic.com...
> What the hell does "to!" have to do with anything. Disregard my last post, it's obviously 3 AM and I'm talking gibberish.
>

I just meant that "iota" looks a lot like (spaces added for clarity) "i   to a". In other words, the first time I ever saw "iota", I confused it for the old C function that converts an integer to an ASCII string. It may very well have been 3am for me at the time ;)


February 11, 2011
On 2/11/11, Nick Sabalausky <a@a.a> wrote:
> "Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.1476.1297391467.4748.digitalmars-d@puremagic.com...
>> What the hell does "to!" have to do with anything. Disregard my last post, it's obviously 3 AM and I'm talking gibberish.
>>
>
> I just meant that "iota" looks a lot like (spaces added for clarity) "i   to a". In other words, the first time I ever saw "iota", I confused it for the old C function that converts an integer to an ASCII string. It may very well have been 3am for me at the time ;)
>

Oh, sorry if it appeared I quoted you, but I wasn't quoting you I was quoting myself and my silly to!range thingy.

I still don't even know what iota stands for. Is it an abbreviation? It sounds like a word that came out of nowhere.
February 11, 2011
"Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.1477.1297394949.4748.digitalmars-d@puremagic.com...
> On 2/11/11, Nick Sabalausky <a@a.a> wrote:
>> "Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.1476.1297391467.4748.digitalmars-d@puremagic.com...
>>> What the hell does "to!" have to do with anything. Disregard my last post, it's obviously 3 AM and I'm talking gibberish.
>>>
>>
>> I just meant that "iota" looks a lot like (spaces added for clarity) "i
>> to
>> a". In other words, the first time I ever saw "iota", I confused it for
>> the
>> old C function that converts an integer to an ASCII string. It may very
>> well
>> have been 3am for me at the time ;)
>>
>
> Oh, sorry if it appeared I quoted you, but I wasn't quoting you I was quoting myself and my silly to!range thingy.
>

Apperently you're not the only one that's tired and talking gibberish ;)


February 11, 2011
On 2011-02-11 04:15, Nick Sabalausky wrote:
> "Andrej Mitrovic"<andrej.mitrovich@gmail.com>  wrote in message
> news:mailman.1476.1297391467.4748.digitalmars-d@puremagic.com...
>> What the hell does "to!" have to do with anything. Disregard my last
>> post, it's obviously 3 AM and I'm talking gibberish.
>>
>
> I just meant that "iota" looks a lot like (spaces added for clarity) "i   to
> a". In other words, the first time I ever saw "iota", I confused it for the
> old C function that converts an integer to an ASCII string. It may very well
> have been 3am for me at the time ;)

I thought that as well that first time I saw it.

-- 
/Jacob Carlborg
February 11, 2011
On 2011-02-10 23:05, Andrei Alexandrescu wrote:
> On 2/10/11 9:47 AM, spir wrote:
>> Even then, noone forces D2 to blindly reproduce stupid naming from
>> APL/C++, I guess. Or what?
>
> I don't find the name "iota" stupid.
>
> Andrei

Of course you don't think it's stupid, you named it. It starts to look more and more that you are the only one that likes it. How about we vote about it ?

-- 
/Jacob Carlborg
February 11, 2011
On 02/11/2011 02:38 AM, Nick Sabalausky wrote:
> "Max Samukha"<maxsamukha@spambox.com>  wrote in message
> news:ij10n7$25p0$1@digitalmars.com...
>> On 02/10/2011 05:18 PM, Andrei Alexandrescu wrote:
>>> On 2/10/11 12:30 AM, Olivier Pisano wrote:
>>>> Le 09/02/2011 21:08, Ary Manzana a écrit :
>>>>> On 2/9/11 3:54 PM, bearophile wrote:
>>>>>> - There is no need to learn to use a function with a weird syntax like
>>>>>> iota, coming from APL. This makes Phobos and learning D a bit simpler.
>>>>>
>>>>> I would recommend stop using "weird" names for functions. Sorry if this
>>>>> sounds a little harsh but the only reason I see this function is called
>>>>> "iota" is to demonstrate knowledge (or to sound cool). But programmers
>>>>> using a language don't care about whether the other programmer
>>>>> demonstrates knowledge behind a function name, they just want to get
>>>>> things done, fast.
>>>>>
>>>>> I mean, if I want to create a range of numbers I would search "range".
>>>>> "iota" will never, ever come to my mind. D has to be more open to
>>>>> public, not only to people who programmed in APL, Go or are mathematics
>>>>> freaks. Guess how a range is called in Ruby? That's right, Range.
>>>>>
>>>>> Another example: retro. The documentation says "iterates a
>>>>> bidirectional
>>>>> name backwards". Hm, where does "retro" appear in that text? If I want
>>>>> to iterate it backwards, or to reverse the order, the first thing I
>>>>> would write is reverse(range) or backwards(range), "retro" would never
>>>>> come to my mind.
>>>>>
>>>>> (and no, replies like "you can always alias xxx" are not accepted :-P)
>>>>
>>>> Hi,
>>>>
>>>> I agree iota is a bad name.
>>>
>>> Fifth result of simply googling the entire Web for "iota":
>>>
>>> http://www.sgi.com/tech/stl/iota.html
>>>
>>>
>>> Andrei
>>
>> Google search takes your preferences into account. They must be tracking
>> your search history, peeking into your gmail accounts etc. I searched for
>> 'iota' and couldn't find the STL link on the first 5 pages.
>
> Yea, it's definitely user-specific. It's on the thrid page for me.

Result #38 for me.

Denis
-- 
_________________
vita es estrany
spir.wikidot.com

February 11, 2011
On 02/11/2011 03:06 AM, Jonathan M Davis wrote:
> I feel pretty much the same way. iota seems like a horrible name as far as
> figuring out what the function does from its name goes. I don't know what a good
> name would be though (genSequence?)

why not "interval"? (not obvious enough ;-)

denis
-- 
_________________
vita es estrany
spir.wikidot.com

February 11, 2011
On 2/11/11 12:15 AM, Nick Sabalausky wrote:
> "Andrej Mitrovic"<andrej.mitrovich@gmail.com>  wrote in message
> news:mailman.1476.1297391467.4748.digitalmars-d@puremagic.com...
>> What the hell does "to!" have to do with anything. Disregard my last
>> post, it's obviously 3 AM and I'm talking gibberish.
>>
>
> I just meant that "iota" looks a lot like (spaces added for clarity) "i   to
> a". In other words, the first time I ever saw "iota", I confused it for the
> old C function that converts an integer to an ASCII string. It may very well
> have been 3am for me at the time ;)

You are the second one who confuses iota with itoa. Actually, the third, I confused it too.

According to the book "The Design of Everyday Things" the design of that function name is wrong, it's not your fault and it's not because it was 3am. When many people make mistakes with regards to the design of something it's *always* the design's fault, never the human's fault.

February 11, 2011
On Fri, 11 Feb 2011 09:06:06 -0500, Ary Manzana <ary@esperanto.org.ar> wrote:

> On 2/11/11 12:15 AM, Nick Sabalausky wrote:
>> "Andrej Mitrovic"<andrej.mitrovich@gmail.com>  wrote in message
>> news:mailman.1476.1297391467.4748.digitalmars-d@puremagic.com...
>>> What the hell does "to!" have to do with anything. Disregard my last
>>> post, it's obviously 3 AM and I'm talking gibberish.
>>>
>>
>> I just meant that "iota" looks a lot like (spaces added for clarity) "i   to
>> a". In other words, the first time I ever saw "iota", I confused it for the
>> old C function that converts an integer to an ASCII string. It may very well
>> have been 3am for me at the time ;)
>
> You are the second one who confuses iota with itoa. Actually, the third, I confused it too.

Me 2.

> According to the book "The Design of Everyday Things" the design of that function name is wrong, it's not your fault and it's not because it was 3am. When many people make mistakes with regards to the design of something it's *always* the design's fault, never the human's fault.

I love that book, I wish more software engineers used it.  One of my favorite classes at college.

-Steve