David L. Nicol wrote:
> some expressiveness is gained, and a creation of a temporary variable
> can be avoided.
> 
> when $thing is a complex expression, a temporary variable must be
> explicitly assigned.  "it" holds the place in my pseudocode.

If you have a complex expression, there's no way to avoid
a variable, even if it can be made "anonymous".

And with arbitrary expressions, you'd have to have some
syntax for declaring which part of the expression is to
be referenced by "it", because perl would have no way
to guess otherwise.

E.g. It() --

  It( $x + y ) > $limit and return it;

It() socks its arg value into C<it>.

This doesn't look like something that needs support
from the compiler...

-- 
John Porter

Reply via email to