Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Operator Precedence

by Cybercosis (Monk)
on Jul 23, 2001 at 11:19 UTC ( #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.

~Cybercosis

nemo accipere quod non merere

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2021-10-24 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?