Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: To Trinary or not to Ternary

by BrowserUk (Patriarch)
on Dec 05, 2003 at 20:04 UTC ( #312618=note: print w/replies, xml ) Need Help??


in reply to To Trinary or not to Ternary

It would be interesting to know when, by whom and in what context, ?: first started being termed as either 'the trinary operator' or 'the ternary operator'?

I just dug through a bunch of old language references including a Kernighain & Ritchie from 1978, Stoustrup from 1986, the Waite's Group ANSI C from 1989 and several others including a Java manual from the late 90's and it is universally referred to as 'the conditional expression'.

Does anyone else know or have a reference on this?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!
Wanted!

Replies are listed 'Best First'.
Re: Re: To Trinary or not to Ternary
by ysth (Canon) on Dec 07, 2003 at 02:20 UTC
    FWIW, the actual op used in perl is OP_COND_EXPR, implemented in pp_cond_expr.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2022-08-10 02:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?