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

Reply via email to