So, to bring this thread back on track *again*, I hopefully offer this summary.
1) Damian's idea of using ~> and <~ as L2R and R2L is well-liked. Thus:
@out = grep { ... } map { ... } @in; # (1) (perl5)
becomes any of the following:
@out = grep { ... } <~ map { ... } <~ @in; # (2) (perl6)
@out <~ grep { ... } <~ map { ... } <~ @in; # (3)
@in ~> map { ... } ~> grep { ... } ~> @out; # (4)
My impression was that this was _instead_ of (1), eliminating the specialized syntax of the map, grep, etc. functions in favor of this more generic piping syntax, but that wasn't explicitly stated. Is that correct?
2) You might be able to combine L2R and R2L piping in one statement. Maybe.
3) How pretty you think the above is depends almost entirely on how the tilde is rendered in your font.
4) Some people like the idea of having Unicode operators in perl6. Some don't. There are issues with it. Larry hasn't come up with a ruling yet. We should wait for his decision.
5) Sarcasm is, apparently, dead.
MikeL
- Re: L2R/R2L syntax (was Re: Everything is an object.) Mr. Nobody
- Re: L2R/R2L syntax (was Re: Everything is an object.) Austin Hastings
- Re: L2R/R2L syntax (was Re: Everything is an object.) Buddha Buck
- Re: L2R/R2L syntax (was Re: Everything is an object.) Buddha Buck
- Re: L2R/R2L syntax (was Re: Everything is an object.) Nicholas Clark
- Re: L2R/R2L syntax (was Re: Everything is an object.) Jonathan Scott Duff
- Re: L2R/R2L syntax (was Re: Everything is an object.) David Storrs
- Re: L2R/R2L syntax (was Re: Everything is an object.) Dan Sugalski
- Re: L2R/R2L syntax (was Re: Everything is an object.) David Storrs
- Re: L2R/R2L syntax (was Re: Everything is an object.) Petras
- Re: L2R/R2L syntax Michael Lazzaro
- Re: L2R/R2L syntax Mr. Nobody
- RE: L2R/R2L syntax Brent Dax
- Re: L2R/R2L syntax Simon Cozens
- RE: L2R/R2L syntax Brent Dax
- Re: L2R/R2L syntax Simon Cozens
- RE: L2R/R2L syntax Austin Hastings
- Re: L2R/R2L syntax Piers Cawley
- Re: L2R/R2L syntax Simon Cozens
- Re: L2R/R2L syntax Graham Barr
- Re: L2R/R2L syntax Richard J Cox