Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31453
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Simple if-exercises |
| Date | Fri, 03 Apr 2015 20:06:02 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 27 |
| Message-ID | <mfn9ur$ekc$1@dont-email.me> (permalink) |
| References | <if-20150402020010@ram.dialup.fu-berlin.de> <mfjhvg$1ka$1@dont-email.me> <mflc17$mdd$1@Gaia.teknon.de> <mflu1f$7b6$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sat, 4 Apr 2015 00:06:51 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="c50a9e5d554cfaba13eda1c71e805135"; logging-data="14988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193xE1THmeZURZeGz3XOHgnFErdaznpGHE=" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 |
| In-Reply-To | <mflu1f$7b6$1@dont-email.me> |
| Cancel-Lock | sha1:DonIb1uHZM/CDDO2dxDPpAWR1rg= |
| Xref | csiph.com comp.lang.java.programmer:31453 |
Show key headers only | View raw
On 04/03/2015 07:38 AM, Eric Sosman wrote: > On 4/3/2015 2:29 AM, Volker Borchert wrote: >> Jeff Higgins wrote: >> >>> Why don't we have a Quinary operator? >>> x ? y LT : EQ : GT >> >> One of those occasions where "newer" is not "better". >> >> I _do_ miss FORTRAN's three-way IF statement. > > I miss it, but very rarely. It's nice in a binary search, > and it's nice in heapsort, but I can't recall other contexts > that made me wish it were still around. > > An ironic oddity: In the numerical applications for which > FORTRAN is justly famous, the three-way IF is almost never the > right thing to use! You don't want "negative,zero,positive" > but "noticeably negative,close to zero,noticeably positive." > I don't recall having seen a java.lang.Comparable.compareTo(T o) implementation that uses the full range of int values in its output. I wonder if someone could point me toward such a thing. If Comparable is indeed used this way then I wonder about a pluggable reduce function for it.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Simple if-exercises Jeff Higgins <jeff@invalid.invalid> - 2015-04-02 09:58 -0400
Re: Simple if-exercises Jeff Higgins <jeff@invalid.invalid> - 2015-04-02 10:53 -0400
Re: Simple if-exercises Jerry Stuckle <jstucklex@attglobal.net> - 2015-04-02 15:08 -0400
Re: Simple if-exercises Gene Wirchenko <genew@telus.net> - 2015-04-02 16:46 -0700
Re: Simple if-exercises v_borchert@despammed.com (Volker Borchert) - 2015-04-03 06:29 +0000
Re: Simple if-exercises Martin Gregorie <martin@address-in-sig.invalid> - 2015-04-03 10:29 +0000
Re: Simple if-exercises v_borchert@despammed.com (Volker Borchert) - 2015-04-03 18:05 +0000
Re: Simple if-exercises Martin Gregorie <martin@address-in-sig.invalid> - 2015-04-03 19:31 +0000
Re: Simple if-exercises Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-04-03 16:07 -0400
Re: Simple if-exercises Martin Gregorie <martin@address-in-sig.invalid> - 2015-04-03 21:45 +0000
Re: Simple if-exercises v_borchert@despammed.com (Volker Borchert) - 2015-04-03 23:49 +0000
Re: Simple if-exercises Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-04-03 07:38 -0400
Re: Simple if-exercises Jeff Higgins <jeff@invalid.invalid> - 2015-04-03 20:06 -0400
csiph-web