Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Second use of flattening
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Terrence Brannon  
View profile  
 More options Apr 4 2005, 2:45 pm
Newsgroups: perl.perl6.language
From: bauh...@metaperl.com (Terrence Brannon)
Date: Mon, 04 Apr 2005 18:45:34 +0000
Local: Mon, Apr 4 2005 2:45 pm
Subject: Second use of flattening
The first discussion of flattening had to do with a list of data being
flattened into an array.

Further down we see another different use of the word "flattening" :

<quote
       src=http://dev.perl.org/perl6/synopsis/S06.html
       section="Flattening lists">

  The unary prefix operator * flattens its operand (which allows the
  elements of an array or iterator to be used as an argument list).

</quote>

Here I understand this to mean that the array is spreading or
distributing its elements to individual scalars.

So, to avoid confusion with the common understanding of flattening in
Perl, perhaps it should be called spreading or distributing.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juerd  
View profile  
 More options Apr 4 2005, 6:34 pm
Newsgroups: perl.perl6.language
From: ju...@convolution.nl (Juerd)
Date: Tue, 5 Apr 2005 00:34:31 +0200
Local: Mon, Apr 4 2005 6:34 pm
Subject: Re: Second use of flattening
Terrence Brannon skribis 2005-04-04 18:45 (+0000):

> So, to avoid confusion with the common understanding of flattening in
> Perl, perhaps it should be called spreading or distributing.

I agree.

Likewise, "slurping" is probably best explained as collecting.

Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Rodland  
View profile  
 More options Apr 4 2005, 10:34 pm
Newsgroups: perl.perl6.language
From: arodl...@entermail.net (Andrew Rodland)
Date: Mon, 4 Apr 2005 22:34:13 -0400
Local: Mon, Apr 4 2005 10:34 pm
Subject: Re: Second use of flattening
On Monday 04 April 2005 06:34 pm, Juerd wrote:

> Terrence Brannon skribis 2005-04-04 18:45 (+0000):
> > So, to avoid confusion with the common understanding of flattening in
> > Perl, perhaps it should be called spreading or distributing.

> I agree.

> Likewise, "slurping" is probably best explained as collecting.

I like this. I'd be tempted to suggest "scatter" / "gather", but that's
probably a bit opaque to the average reader. How about describing them as
"expand" / "collect" for a matched pair? That's got a legacy in math, and
some mathematically-oriented languages.

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Larry Wall  
View profile  
 More options Apr 5 2005, 2:59 am
Newsgroups: perl.perl6.language
From: la...@wall.org (Larry Wall)
Date: Mon, 4 Apr 2005 23:59:10 -0700
Local: Tues, Apr 5 2005 2:59 am
Subject: Re: Second use of flattening
On Mon, Apr 04, 2005 at 10:34:13PM -0400, Andrew Rodland wrote:

: On Monday 04 April 2005 06:34 pm, Juerd wrote:
: > Terrence Brannon skribis 2005-04-04 18:45 (+0000):
: > > So, to avoid confusion with the common understanding of flattening in
: > > Perl, perhaps it should be called spreading or distributing.
: >
: > I agree.
: >
: > Likewise, "slurping" is probably best explained as collecting.
:
: I like this. I'd be tempted to suggest "scatter" / "gather", but that's
: probably a bit opaque to the average reader. How about describing them as
: "expand" / "collect" for a matched pair? That's got a legacy in math, and
: some mathematically-oriented languages.

We chose "slurp" for several good reasons, including the fact that it
isn't currently overloaded N ways from Sunday, and it has a decent
adjectival form that you can talk about parameters with.  And if
you're going to make up a new technical term, it doesn't really need
to have any legacy at all, as long as the metaphor works, and the
Huffman coding is right.  In fact, sometimes we intentionally go
against existing legacy, like when we named "roles".  Sometimes we
go with the legacy, such as with "flatten".

I don't want to discourage people from brainstorming about the
terminology, but you have to recognize that the design team has been
banging its collective head against these issues for years now.
Damian in particular is a stickler for good terminology.  So you
*might* offhandedly come up with something better than we've thought
of already, but please realize it's a long shot.  Most of these words
were rather firmly lodged into their metastable states even before
the Apocalypses came out--let alone the Exegeses and Synopses--so
you'll have to whack 'em pretty hard to knock any of 'em loose.

Larry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juerd  
View profile  
 More options Apr 5 2005, 2:57 am
Newsgroups: perl.perl6.language
From: ju...@convolution.nl (Juerd)
Date: Tue, 5 Apr 2005 08:57:57 +0200
Local: Tues, Apr 5 2005 2:57 am
Subject: Re: Second use of flattening
Andrew Rodland skribis 2005-04-04 22:34 (-0400):

> > Likewise, "slurping" is probably best explained as collecting.
> I like this. I'd be tempted to suggest "scatter" / "gather", but that's

Gather is taken.

> probably a bit opaque to the average reader. How about describing them as
> "expand" / "collect" for a matched pair? That's got a legacy in math, and
> some mathematically-oriented languages.

It having meaning in maths is probably more a reason not to use, unless
the meaning is identical enough.

Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »