Piers Cawley [mailto:[EMAIL PROTECTED]] wrote:
> Damian Conway <[EMAIL PROTECTED]> writes:
> > I suppose this discussion also raises the vexed question 
> whether ??:: can also be put out to pasture in favour of:
> >
> >     $val = if $x { 1 } else { 2 };

I like that idea.

> Only if you can also do:
> 
>     if $x { $x } else { $y } = 'foo';
> 
> But that looks really scary.

Its not really of nasty as it looks (IMHO). If we can have an
lvalue context for evaluation of expressions, then I can't
see any real problem.

We already have the possibility of evaluating a sub in
lvalue context. This is disabled unless the sub has the
lvalue property. Is there any reason why non-sub blocks
shouldn't have this enabled, by default.


Dave.

Reply via email to