Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 scrutinizing the Monastery: (8)
As of 2024-07-17 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.