Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Operator Precedence

by Cybercosis (Monk)
on Jul 23, 2001 at 11:19 UTC ( [id://98927]=note: print w/replies, xml ) Need Help??

in reply to Operator Precedence

Well, I think that the operator precedence rule is there for at least two reasons, above and beyond programmer error: (Perhaps that should be reworded to "I recommend the operator precedence rule because...")

1) Precedence tables are not consistant across all languages
2) Precedence tables are subject to change in non-standardized languages.

While there has been an obvious effort to keep the main operators (arithmetic, in particular) consistant and based off of the mathematic precedence table across most languages, when it gets down to things like bitwise ops there is a lot of room for difference. I can't think of an example right offhand, though.


nemo accipere quod non merere

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-25 07:22 GMT
Find Nodes?
    Voting Booth?

    No recent polls found