Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Assigning void Date: Sun, 21 Oct 2012 20:13:16 -0400 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 22 Oct 2012 00:13:16 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="ffb8f7085759b339c1002252b48331a4"; logging-data="30568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iiN7j5d9uiSo0cmcUz/0I" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 In-Reply-To: Cancel-Lock: sha1:M9fXcRNOPdiHchTtPgKZwTkELE8= Xref: csiph.com comp.lang.java.programmer:19466 On 10/21/2012 5:52 PM, Wojtek wrote: > Sven Köhler wrote : >> Am 13.10.2012 07:54, schrieb Wojtek: >>> but I want to do: >>> >>> (server.getConnectionType() == ConnectionType.ACTIVE) ? >>> ftp.enterLocalActiveMode() : ftp.enterLocalPassiveMode(); >> >> That's not correct Java syntax. Live with it. > > So you just posted your first message to this group and this is how you > want to represent yourself? > > Of course it is not valid syntax, I was just trying to start a > discussion about its possible merits. Merits: "If you want Lisp, you know where to find it." Seriously, the fact that C permits the ?: operator with void operands is an historical accident, a holdover from before the days when `void' came to C. Java lacks C's historical baggage, so there's little reason to carry it. (Java slavishly perpetuates a few of C's other infelicities, but this one isn't among them.) -- Eric Sosman esosman@comcast-dot-net.invalid