From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: conditional operator
Date: Tue, 19 Mar 2013 19:20:19 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <kiadpj$jd2$>
References: <ef55682.-1@webcrossing.raydaftYaTP> <4635e28a$0$12844$> <f14sdd$ns2$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1363720819 19874 (19 Mar 2013 19:20:19 GMT)
NNTP-Posting-Date: Tue, 19 Mar 2013 19:20:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2460068
Xref: comp.soft-sys.matlab:791532

"Steven Lord" <> wrote in message
 > MATLAB does not have the ternary ?: operator, but we do have a request in 
> the enhancement database for this.

How's this coming?

Since short-circuit evaluation ( is a key part of the ternary operator's usefulness, it can only be efficiently implemented at the language level.  We users can't do it for ourselves.