CSharpFeeds - All your C# feeds in one place.

Sponsors

Thursday, February 18, 2010

What’s the difference between ternary and tertiary?

by Eric Lippert via Fabulous Adventures In Coding on 2/18/2010 2:22:00 PM

Tertiary The conditional operator ( condition ? consequence : alternative ) is often referred to as both the “ternary operator” and the “tertiary operator”. What’s the difference?

Ternary” means “having three parts”. Operators in C# can be unary, binary or ternary – they take one, two or three operands.

 “Tertiary” means “third in order”. Compiler flaws noted in bug reports can be of primary, secondary or tertiary importance. Colours can be primary (yellow), secondary (orange) or tertiary (yellowish-orange), like our muppet friend to the left there. And so on.

“Tertiary operator” is therefore an English usage error, unless what you’re trying to say is that the conditional operator is third most important to you, or that it is a lovely greenish-blue colour.

I say avoid the problem altogether; it is simply more clear to call the conditional operator “the conditional operator”.

email it!bookmark it!digg it!

Original Post: What’s the difference between ternary and tertiary?

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us