Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Operator Precedence (unary nagation and exponentiation)

by Callum (Chaplain)
on Jan 14, 2003 at 10:42 UTC ( [id://226791]=note: print w/replies, xml ) Need Help??


in reply to Operator Precedence (unary negation and exponentiation)

Unfortunately the orders of precedence used in different subjects (computing, science, etc) and languages (Perl precedence is mostly based on C's precedence) vary too much, yet are similar enough that people can make (sometimes-wrong) assumptions about what the order will be.

My background is sciency rather than computery, so I've seen several such problems, which are essentially arising out of sharing part of a language -- the concept of operator precedence exists in both the 'maths-language' and the 'perl-language', and means almost the same thing in both but with subtle differences which will be missed if you're not fully fluent in both languages.

  • Comment on Re: Operator Precedence (unary nagation and exponentiation)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found