http://qs321.pair.com?node_id=312618


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.