Larry Wall 提到:
> I was originally thinking just loop modifiers, but I suppose
> 
>     { say $^x } if foo();
> 
> also can be made to make some kind of sense, in the same way that
> 
>     if foo() -> $x { say $x }
> 
> is supposed to work.

Right. I've committed the clarification (as a new section).  Thanks!

> Yes, current STD has the inside of () and [] as <statementlist>,
> which throws away all but the last statement.  Arguably [] at least
> should probably be <semilist> though, and maybe () too.
> 
>     my @x := [{1+1}; {2+2}];  @x is currently [4], should be [2,4]?
>     my @x = ({1+1}; {2+2});  same deal?

That's what I'd expect, yes.

Cheers,
Audrey

Reply via email to