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


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

Re: "equals" - a bad name?

From Knute Johnson <nospam@rabbitbrush.frazmtn.com>
Newsgroups comp.lang.java.programmer
Subject Re: "equals" - a bad name?
Date 2016-08-13 22:29 -0700
Organization A noiseless patient Spider
Message-ID <noovk8$j2a$2@dont-email.me> (permalink)
References <equals-20160814002020@ram.dialup.fu-berlin.de>

Show all headers | 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