[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] @a ||= (1, 2);



Tom Christiansen <tchrist@jhereg.perl.com> writes:

> >As far as I know, Perl doesn't currently have any binary list
> >operators, although I see no reason why not.
> 
>     @x = (1,2,3) x 123;
> 
> But mostly it's better without them.  People would want
> things like @a + @b to behave differently.  And then we'd
> get to argue about @a * @b.

But @a * @b is not a problem unless you're multiplying 6 lists of 7
numbers each in a list context (at which point you need to decide
which cross product you want).

-- 
Ariel Scolnicov

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe