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.
- RFC 45 (v1) || should propagate result context to bo Perl6 RFC Librarian
- Re: RFC 45 (v1) || should propagate result contex... H.Merijn Brand
- Re: RFC 45 (v1) || should propagate result co... Tom Christiansen
- Re: RFC 45 (v1) || should propagate resul... Larry Wall
- Re: RFC 45 (v1) || should propagate resul... Peter Scott
- Re: RFC 45 (v1) || should propagate result co... Peter Scott
- Bart Lateur
