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
- Re: 1 until defined(getvalue()); return it; Buddha Buck
- Re: 1 until defined(getvalue()); return it; Simon Cozens
- Re: 1 until defined(getvalue()); return it; Michael G Schwern
- Re: 1 until defined(getvalue()); return it; John Porter
- Re: 1 until defined(getvalue()); return it; John Porter
- Re: 1 until defined(getvalue()); return it; David L. Nicol
- Re: 1 until defined(getvalue()); return it; David L. Nicol
- Re: 1 until defined(getvalue()); return it; Michael G Schwern
- Re: 1 until defined(getvalue()); return it; Michael G Schwern
- Re: 1 until defined(getvalue()); return it; Simon Cozens
- Re: 1 until defined(getvalue()); return it; John Porter
- Re: 1 until defined(getvalue()); return it; Damian Conway
- Re: 1 until defined(getvalue()); return it; David L. Nicol
- Re: 1 until defined(getvalue()); return it; Simon Cozens
- Re: 1 until defined(getvalue()); return it; Vijay Singh
- RE: 1 until defined(getvalue()); return it; David Grove