Talk:Ternary operation

From Wikipedia, the free encyclopedia

Why is ternary operation sharing a page with ternary operator? Although similar and related concepts, they are not exactly the same. A ternary operation in mathematics maps A\times A \times A \longrightarrow A. Whereas a ternary operator is just something that takes three arguments. A vector triple product is an example of a ternary operator but it is not a ternary operation, since it takes three vectors and gives a scalar result.

I would propose separating the two pages with links from each pointing toward the other for people who find themselves in the wrong place.--Hawthorn 13:37, 16 August 2006 (UTC)

[edit] PHP?

Is this the same as in PHP : $int = ($ifstatement) ? $thenvalue : $elsevalue;

Yes. See ?:. –EdC 23:00, 26 February 2007 (UTC)