Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: double == double Date: Sat, 15 Oct 2016 20:30:12 -0400 Organization: Aioe.org NNTP Server Lines: 19 Message-ID: References: <8737k0qd38.fsf@golem.phantasia.org> <87zim5es30.fsf@golem.phantasia.org> NNTP-Posting-Host: PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:35775 On 10/15/2016 6:09 PM, 4ndre4 wrote: > On 15/10/2016 15:41, Arne Vajhøj wrote: > [...] >> I don't think that double nor String are good choices for version >> numbers. > > Why not String? Maven's versions are strings, for example. = is fine for String. But < <= > >= can be problematic: "1.10" < "1.9" "1.0" < "1.0 beta" "1.1.1" < 1.1pl1" Arne