This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Re: Sequence -> Seq

2 replies
Bryan
Joined: 2008-12-19,
User offline. Last seen 42 years 45 weeks ago.

I too prefer Seq.

--Bryan

On Tue, Sep 22, 2009 at 2:17 PM, Erik Engbrecht
wrote:
> +1
>
> On Tue, Sep 22, 2009 at 2:15 PM, Ismael Juma wrote:
>>
>> Stepan Koltsov mx1.ru> writes:
>> > Shouldn't Sequence be renamed to Seq until it is too late?
>>
>> For whatever it's worth, I like Seq better too.
>>
>> Best,
>> Ismael
>>
>
>
>
> --
> http://erikengbrecht.blogspot.com/
>

Seth Tisue
Joined: 2008-12-16,
User offline. Last seen 34 weeks 3 days ago.
Re: Re: Sequence -> Seq

>>>>> "Naftoli" == Naftoli Gugenheim writes:

Naftoli> Map and map have somewhat similar meaning--Map is a structure
Naftoli> (as someone said, a noun) that constantly maps inputs to
Naftoli> outputs and map is a "verb" that converts inputs to outputs;
Naftoli> Seq and seq don't.

Huh? "sequence" and "sequential" aren't similar?

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: Sequence -> Seq

Map and map have somewhat similar meaning--Map is a structure (as someone said, a noun) that constantly maps inputs to outputs and map is a "verb" that converts inputs to outputs; Seq and seq don't. Map and map are related the way that Array (etc.) is a function, except that instead of returning a calculation that depends on the input (in that case the index), it returns a lookup.
I think having Seq used side by side with seq with a completely unrelated meaning makes mentally "parsing" the code harder.
It's interesting, one person mentioned that the issue is not typing laziness but how easy it is to read, but about that very point there seems to be differing opinions, because someone else said Sequence is easier to read. (Of course, let's keep in mind that even if Seq is easier to read for someone that's used to it doesn't mean it is for someone that's new to Scala.)
Although I wonder if whoever is worried about the extra 5 characters to type will start using List for everything... :)

-------------------------------------
Paul Phillips wrote:

On Wed, Sep 23, 2009 at 07:24:16AM -0700, Randall R Schulz wrote:
> Map
> Seq
> Set

As long as we're voting here, I find this depiction very compelling. I
strongly prefer Seq anyway so I don't mean to imply that convinced a
fence sitter, but those are the Big Three Collections and there is an
elegant (and utterly unambiguous) uniformity. Somehow we've made it
this far with "Map" and "map" both in constant use, so I'm not sure why
"Seq" and "seq" presents any more of an issue.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland