Dave Whipp wrote:
I like the intent, but I'm not sure about the syntax -- nor the statement about precidence: seems to me that the pipe operator
needs a very low precidence, not very high.
An existing convention for low precidence versions of operators is to use an alphabetic name (e.g. || vs or). perhaps the we could name this operator C<pp>: its vaguely remenicent of the word pipe, without subverting that identifier's existing role. Thus we could write:@out = @in pp map { foo } pp grep { bar } pp sort { $^a <=> $^b }
Perhaps, instead of a low precedence dot operator, what we need is an operator that *appends* its left operand to the argument list of its right operand. I'd suggest it be called C<then>: @out = @in then map { foo } then grep { bar } then sort { $^a <=> $^b }; Of course, if you were a strict left-to-right-arian, you'd presumably write: @in then map { foo } then grep { bar } then sort { $^a <=> $^b } then @out = ; Damian