Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jukka Lahtinen Newsgroups: comp.lang.java.programmer Subject: Re: Assigning void Date: Mon, 15 Oct 2012 14:38:55 +0300 Organization: A noiseless patient Spider Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Injection-Info: ipa.eternal-september.org; posting-host="a4c62bc470043f7279426b11338bb3ae"; logging-data="15324"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Bh1SuwYwAQDgvxs9qXSlN" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:rePkPlR+2WZpPw4bmvE5z+4Yz+E= sha1:dvFMhd8861JnWFHqVSU65FLYrzQ= X-no-archive: yes Xref: csiph.com comp.lang.java.programmer:19353 Lew writes: > 'if' is two keys plus 'then' is four for six keys. '?' is two keys. > 'else' is four keys, ':' is two. But 'then' is not Java. > Advantage: '?:' ten to four. > But for clarity, most ternary expressions require a pair of parentheses, > adding four keys. Now the advantage is ten to eight. > And '?:' loses its place as an operator. -- Jukka Lahtinen