As I was chatting with some friends, the subject of my recent knowledge of Unary, Binary and Trinary operators that had read from the Camel popped up. I was instantly corrected for using Trinary with Ternary. I was momentarily a-taken back that I had made such a mistake, when I had only just read about it. But the two people to whom I was chatting have a more vast knowledge of computer science that I conceded to the correction, until I check the book again. At which point they still did not believe that Trinary was the term that was used in the book. Only after I had offered to take a photo of the pages did they relent that this wasn't some sort of joke.

These friends, each knowing their fair share of languages (Java, C, C++, Cobol plus many more) with one being very proficient in Perl, said they had never heard of the term Trinary and that it must be some sort of made up word. And the fact that it was used when Ternary already existed and both seemingly having the exact same meaning, when used to describe an operator in a programming language. Their lack of knowledge pertaining to existence of the term Trinary and their utter disregard to accept it as a real term, even a real English word, surprises me.

So what I would like to know is:

  1. Is there a difference between Trinary, Ternary (in operator specific context).
  2. Why is Trinary used primarily in the Camel.
  3. How could two very knowledgeable people not know of such a term.
  4. Possibly some background history on the terms themselves.


In reply to To Trinary or not to Ternary by rendler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.