On Wed, May 30, 2001 at 02:39:57PM -0500, David L. Nicol wrote: > ... > defined $thing and return $thing > ... > > when $thing is a complex expression, a temporary variable must be > explicitly > assigned. "it" holds the place in my pseudocode. Hmmm, if $thing is a complex expression I wouldn't want to shove it all onto one line. defined(some_really * complex + expression with function(calls)) and return $IT; doesn't win you much over: my $it = some_really * complex + expression with function(calls); return $it if defined $it; You save a few characters. Take a typing class. ;) Maybe it makes one-liners flow better? PS I'm trying REALLY hard to not say "AUUUUGGGH! KILL IT NOW BEFORE IT GETS LOOSE!" -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl6 Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One And it's made from all-natural baby skin, so you know it's good for the environment. http://www.goats.com/archive/000606.html
- 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; Michael G Schwern
- 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