[ajug-members] Ternary Operator - simplification or complication?

Jim Worthington jim.worthington at worthsoft.com
Thu Jun 1 14:36:03 EDT 2006


I like the ternary operator and use it frequently. It is an elegant way to
express conditional assignment.

 

Jim Worthington 
WorthSoft, Inc. 



  _____  

From: ajug-members-bounces at ajug.org [mailto:ajug-members-bounces at ajug.org]
On Behalf Of Jonathan Komorek
Sent: Thursday, June 01, 2006 1:35 PM
To: ajug-members at www.ajug.org
Subject: [ajug-members] Ternary Operator - simplification or complication?

 

I just opened up a can of worms within our development community by stating
that in certain cases, I find that the Ternary Operator simplifies code.
I've been given the impression that I'm the last Java developer alive that
believes the ternary operator should ever be used. I'm interested in hearing
the opinions of users on this group. 

Has the ternary operator helped you? Caused you great grief? Should it even
be in the language? 

 

Jonathan Komorek
Development Security Officer
Benefitfocus.com, Inc.
(843) 849-7476 ext. 254 (Main)
(843) 849-9485 (Fax)
E-mail: jonathan.komorek at benefitfocus.com 

****************************************************************************
***********
BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended
only for the individual or entity to which it is addressed and may contain
information that is confidential and protected by law. Unauthorized review,
use, disclosure, or dissemination of this communication or its contents in
any way is prohibited and may be unlawful. If you are not the intended
recipient or a person responsible for delivering this message to an intended
recipient, please notify the original sender immediately by e-mail or
telephone, return the original message to the original sender or to
bfpostmaster at benefitfocus.com, and destroy all copies or derivations of the
original message. Thank you. (BFeComNote Rev. 08/01/2005)
****************************************************************************
***********

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20060601/afb68e7f/attachment.html 


More information about the ajug-members mailing list