On Fri, Oct 25, 2002 at 01:00:59PM -0700, Larry Wall wrote:
> On Fri, 25 Oct 2002, Michael Lazzaro wrote:

> : binary operators:
> :      +   -    *    /    %    **   x    ~    <<   >>
> :      +=  -=   *=   /=   %=   **=  x=   ~=   <<=  >>=
> 
> We could distinguish an xx operator (along with xx=) that does list
> replication, rather than requiring parens around the left argument.

I initially thought that ^x would be a good way of expressing this, but now
I'm not so sure. A hyper operator does some sort of vector version of an
operator based on the dimensionality of the left argument. But for x vs xx
the left argument has no change in dimensionality, and even swapping things
round doesn't help, as the replication count is scalar.

Nicholas Clark
-- 
INTERCAL better than perl?      http://www.perl.org/advocacy/spoofathon/

Reply via email to