That was Java code.  Scala doesn't have the ternary operator, as if..else
is an expression instead of a statement as in Java.  val x = if (foo) bar
else baz

On Fri, Jul 27, 2012 at 3:17 PM, clay <[email protected]> wrote:

> I believe you know Scala better than I, but that is the "ternary"
> operator, not "tertiary"?
>
> On Friday, July 27, 2012 4:04:34 AM UTC-5, KWright wrote:
>>
>> Or with the tertiary operator:
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Java Posse" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/javaposse/-/11UKF4iV2RIJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to