On 5 Aug 2000 21:40:43 -0000, Perl6 RFC Librarian wrote:

>It would be nice to be able to say
>
>     @a = @b || @c
>
>instead of having to resort to
>
>     @a = @b ? @b : @c

Would it? It looks like a small win, unless @b is actually a list
instead of just an array.

Currently, || is a scalar operator. It makes sense that way.

Oh, there are proposals to make

        @a = @b + @c;

do the calculation on an element by element basis. If that is accepted,
I think this should apply to || as well.

-- 
        Bart.

Reply via email to