Juerd wrote:

However, in general, chained operators like comma, junction constructors
and infix zip, don't get an op= variant.
>
There's something nice in

    $foo = 42;
    $foo |= .bar for @quux;

as an alternative for

    $foo = any 42, @quux>>.bar;

though

I had always assumed (e.g. in the implementation of Q::S and Perl6::Junctions) that the junctive operators had an assignment form. Assignment-comma and assignment-zip are harder to imagine uses for, but assignment-any, assignment-all, etc. are *very* useful for incrementally building up complex junctions.

Damian

Reply via email to