Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35364
| From | Stanimir Stamenkov <s7an10@netscape.net> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: "equals" - a bad name? |
| Date | 2016-08-16 23:33 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <novtan$gbd$1@dont-email.me> (permalink) |
| References | <equals-20160814002020@ram.dialup.fu-berlin.de> |
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
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