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
Message from discussion Fw: right-to-left pipelines
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
 
Me  
View profile  
 More options Dec 9 2002, 4:48 am
Newsgroups: perl.perl6.language
From: m...@self-reference.com (Me)
Date: Mon, 9 Dec 2002 03:19:39 -0600
Local: Mon, Dec 9 2002 4:19 am
Subject: Re: Fw: right-to-left pipelines

> > > '->' isn't (in my mind) "a left-to-right
> > > flow/assignment operator."  It's a unary
> > > operator, synonymous with "sub" without
> > > parens required around the argument list.

>     given $foo -> $_ { ... }
>     given $foo   sub { ... }

> Are all equivalent (if sub topicalizes its
> first parameter).

Oh. Now I understand C<->> rather differently!

The left-to-right flow/assignment viewpoint
had worked for me as an (incorrect) way to
interpret C<->> when used with C<for> et al.

So, I guess I'm suggesting a binary C<->> that
really is a left-to-right flow/assignment op
so that:

  @data
    -> grep { $_ > 0 }
    -> sort { $^b <=> $^a }
    -> part [/foo/, /bar/]
    -> @foo, @bar;

does what you'd expect.

--
ralph


 
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.