Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #35364

Re: "equals" - a bad name?

Path csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Stanimir Stamenkov <s7an10@netscape.net>
Newsgroups comp.lang.java.programmer
Subject Re: "equals" - a bad name?
Date Tue, 16 Aug 2016 23:33:29 +0300
Organization A noiseless patient Spider
Lines 31
Message-ID <novtan$gbd$1@dont-email.me> (permalink)
References <equals-20160814002020@ram.dialup.fu-berlin.de>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Tue, 16 Aug 2016 20:33:27 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="cc97f2a1d15d3aeecafb86a293a4f39a"; logging-data="16749"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181ghhXRbSOS88pW+N0yEsL"
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40
In-Reply-To <equals-20160814002020@ram.dialup.fu-berlin.de>
X-Face "@)%Vlap6d%OVYDS}B4YUWE@yUy+^!w/+.q.,c5kjI#+uG?kYP&r/pTjNWgo:g[A,O=AL3/ j&4Le2cau$<e=FPq~GbeZ6DW1Grey[VHn8?ktzvoQtzlg;]&rh8g]CD+_BC7d[gW{Yx&_X*4Q$h&nJ l@t(|4R4:T='&]U#ui+z9OC$.~gJjU93kh:Ojc$Cz0n#I9!~!9ay?E<UlW&5,IFX1*KtA>MYEFst$y y"m]M7tq\S(>[a$x0x8%S
Cancel-Lock sha1:PJY7wCmOj/wHVxanrbAlxCej254=
Xref csiph.com comp.lang.java.programmer:35364

Show key headers only | View raw


13 Aug 2016 23:25:20 GMT, Stefan Ram:

> X-Copyright: (C) Copyright 2016 Stefan Ram. All rights reserved.
> 	Distribution through any means other than regular usenet
> 	channels is forbidden. It is forbidden to publish this
> 	article in the world wide web. It is forbidden to change
> 	URIs of this article into links. It is forbidden to remove
> 	this notice or to transfer the body without this notice.

Heh.

>    »a == b« and »a.equals( b )« have two different meanings
>    in Java. Fairly enough, they are written in different
>    ways in Java.
>
>    But what about pronunciation? I believe that »a == b«
>    sometimes is pronunced »a equals b«. And »a.equals( b )«
>    would be pronounced »a equals b«, too! So now, in talks or
>    on the phone (possibly, when thinking in words), the
>    distinction is lost!
>
>    Therefore, »equals« might better have been another name,
>    like, for example, »equivalent«. So, we would have »a == b«
>    and »a.equivalent( b )«.

I've seen elsewhere »a == b« transcribed as »a is same as b« as in 
»a is the same object as b«, or more general »a is the same value as 
b« which makes sense for reference values in Java.

-- 
Stanimir

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: "equals" - a bad name? Stanimir Stamenkov <s7an10@netscape.net> - 2016-08-16 23:33 +0300
  [OT] Re: "equals" - a bad name? Stanimir Stamenkov <s7an10@netscape.net> - 2016-08-17 07:16 +0300
    Re: [OT] Re: "equals" - a bad name? Eric Douglas <e.d.programmer@gmail.com> - 2016-08-17 05:04 -0700

csiph-web