Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Burned by precedence rules

by MidLifeXis (Monsignor)
on Dec 23, 2008 at 15:42 UTC ( #732313=note: print w/ replies, xml ) Need Help??


in reply to Burned by precedence rules

I never use and, or, and not for putting together "logical expressions"1 (!$b || $c && $d), but always use the higher precedence C-style operators. The only time I use the three letter ones is when "englishing" an expression do {expression} or die. If it is a formula, use the C-style operators, if it is English, use the words.

I probably made that as clear as mud.

1 Yeah, I know both of these are logical expressions, I could not find the English words with enough meaning and distinction to clarify the difference.

Update: What jplindstrom said in the next subthread is spot on to what I tried to say here.

--MidLifeXis


Comment on Re: Burned by precedence rules
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://732313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-02 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls