<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>To &lt;a href=&quot;/users/41779&quot;&gt;khopesh&lt;/a&gt;:  &lt;code&gt;?:&lt;/code&gt; isn't &lt;b&gt;the&lt;/b&gt; ternary operator in the sense that &lt;code&gt;+&lt;/code&gt; is &lt;b&gt;the&lt;/b&gt; addition operator; it's merely &lt;b&gt;a&lt;/b&gt; ternary operator. All &quot;ternary&quot; means in this context is that it takes three parameters.  It just happens that &lt;code&gt;?:&lt;/code&gt; is the only ternary operator in common use.

&lt;code&gt;?:&lt;/code&gt; is a ternary operator;
&lt;code&gt;+&lt;/code&gt;, &lt;code&gt;*&lt;/code&gt;, &lt;code&gt;/&lt;/code&gt;, etc. are binary operators;
&lt;code&gt;!&lt;/code&gt;, &lt;code&gt;++&lt;/code&gt;, and &lt;code&gt;--&lt;/code&gt; are unary operators; and
&lt;code&gt;-&lt;/code&gt; can be binary (&lt;code&gt;2-3&lt;/code&gt;) or unary (&lt;code&gt;-1&lt;/code&gt;) depending on context.

To &lt;a href=&quot;/users/23652&quot;&gt;JoeSimmons&lt;/a&gt;:  Now that we're on the subject, you should know that it's the &lt;code&gt;?:&lt;/code&gt; operator, not the &lt;code&gt;?&lt;/code&gt; operator.</body>
  <body-html>&lt;p&gt;To &lt;a href=&quot;/users/41779&quot;&gt;khopesh&lt;/a&gt;:  &lt;code&gt;?:&lt;/code&gt; isn't &lt;b&gt;the&lt;/b&gt; ternary operator in the sense that &lt;code&gt;+&lt;/code&gt; is &lt;b&gt;the&lt;/b&gt; addition operator; it's merely &lt;b&gt;a&lt;/b&gt; ternary operator. All &quot;ternary&quot; means in this context is that it takes three parameters.  It just happens that &lt;code&gt;?:&lt;/code&gt; is the only ternary operator in common use.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;?:&lt;/code&gt; is a ternary operator;
&lt;br /&gt;&lt;code&gt;+&lt;/code&gt;, &lt;code&gt;*&lt;/code&gt;, &lt;code&gt;/&lt;/code&gt;, etc. are binary operators;
&lt;br /&gt;&lt;code&gt;!&lt;/code&gt;, &lt;code&gt;++&lt;/code&gt;, and &lt;code&gt;--&lt;/code&gt; are unary operators; and
&lt;br /&gt;&lt;code&gt;-&lt;/code&gt; can be binary (&lt;code&gt;2-3&lt;/code&gt;) or unary (&lt;code&gt;-1&lt;/code&gt;) depending on context.&lt;/p&gt;

&lt;p&gt;To &lt;a href=&quot;/users/23652&quot;&gt;JoeSimmons&lt;/a&gt;:  Now that we're on the subject, you should know that it's the &lt;code&gt;?:&lt;/code&gt; operator, not the &lt;code&gt;?&lt;/code&gt; operator.&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-11-05T16:35:19Z</created-at>
  <forumable-id type="integer">3</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">17157</id>
  <topic-id type="integer">9492</topic-id>
  <updated-at type="datetime">2008-11-05T16:42:59Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">51934</user-id>
</post>
