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


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

Re: "equals" - a bad name?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Knute Johnson <nospam@rabbitbrush.frazmtn.com>
Newsgroups comp.lang.java.programmer
Subject Re: "equals" - a bad name?
Date Sat, 13 Aug 2016 22:29:44 -0700
Organization A noiseless patient Spider
Lines 21
Message-ID <noovk8$j2a$2@dont-email.me> (permalink)
References <equals-20160814002020@ram.dialup.fu-berlin.de>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Sun, 14 Aug 2016 05:29:44 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="fc10d1b501433caa198830294d826923"; logging-data="19530"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yqMPrRVLNlTZ0HUhCVUrr"
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
In-Reply-To <equals-20160814002020@ram.dialup.fu-berlin.de>
Cancel-Lock sha1:B/ce0aBoDEhtpDaLsqSH+rzMkFE=
Xref csiph.com comp.lang.java.programmer:35316

Show key headers only | View raw


On 8/13/2016 16:25, Stefan Ram wrote:
>   »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 always say (usually to my self) dot equals as opposed to equals.

-- 

Knute Johnson

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


Thread

Re: "equals" - a bad name? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2016-08-13 22:29 -0700
  Re: "equals" - a bad name? Eric Douglas <e.d.programmer@gmail.com> - 2016-08-17 05:06 -0700

csiph-web