Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Ternary operator (there's no Trinary operator )

by jdhedden (Deacon)
on Jul 19, 2006 at 17:07 UTC ( [id://562353]=note: print w/replies, xml ) Need Help??


in reply to Ternary operator (there's no Trinary operator )

From perlop ,we have:
Conditional Operator
    Ternary "?:" is the conditional operator, just as in C.
Which says that ?: is a ternary-type operator (meaning it has 3 components), and that its name is "the conditional operator".

"Trinary" is just not a word - it's a lexical error.

"Tertiary" is a description of ordinality, and means "the third position". Thus, for ?:, the tertiary argument is returned when the conditional is false.


Remember: There's always one more bug.

Replies are listed 'Best First'.
Re^2: Ternary operator (there's no Trinary operator )
by rir (Vicar) on Jul 21, 2006 at 03:00 UTC
    Trinary certainly is a word; in this context is a synonym for ternary.

    Be well,
    rir

Log In?
Username:
Password:

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

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

    No recent polls found