https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6312

Adam Katz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Adam Katz <[email protected]> 2010-02-01 08:19:29 UTC ---
Yeah, as noted earlier, my perl isn't as hot as some of the other things I do. 
I just find it odd to use a ternary operator with empty clauses, especially if
the empty clause is the first one.  Better to use 'if(!...)' except for the
note below.

Perhaps my assumptions of perl's short-circuiting nature is incorrect, but I
was under the impression something like  'true && false && undef'  wouldn't be
a problem because it would stop everything once you get the false clause.

As to the statement standing within an expression ... again, my green perl
nature shines.  I guess that's why it was ternary, so as to avoid the extra
curly brackets and/or a 'do' stanza?

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to