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


Groups > comp.lang.javascript > #37257 > unrolled thread

Object equals other object

Started byAndrew Poulos <ap_prog@hotmail.com>
First post2019-09-16 12:44 +1000
Last post2019-09-17 18:46 +0100
Articles 4 on this page of 24 — 7 participants

Back to article view | Back to comp.lang.javascript


Contents

  Object equals other object Andrew Poulos <ap_prog@hotmail.com> - 2019-09-16 12:44 +1000
    Re: Object equals other object "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-09-16 09:00 +0200
      Re: Object equals other object Andrew Poulos <ap_prog@hotmail.com> - 2019-09-16 18:30 +1000
        Re: Object equals other object Julio Di Egidio <julio@diegidio.name> - 2019-09-16 02:01 -0700
          Re: Object equals other object Andrew Poulos <ap_prog@hotmail.com> - 2019-09-16 19:39 +1000
          Re: Object equals other object John G Harris <niam@jghnorth.org.uk.invalid> - 2019-09-16 18:29 +0100
        Re: Object equals other object John G Harris <niam@jghnorth.org.uk.invalid> - 2019-09-16 10:04 +0100
          Re: Object equals other object Julio Di Egidio <julio@diegidio.name> - 2019-09-16 02:21 -0700
            Re: Object equals other object John G Harris <niam@jghnorth.org.uk.invalid> - 2019-09-16 18:39 +0100
            Re: Object equals other object Arno Welzel <usenet@arnowelzel.de> - 2019-09-17 10:45 +0200
        Re: Object equals other object Arno Welzel <usenet@arnowelzel.de> - 2019-09-16 11:49 +0200
          Re: Object equals other object Julio Di Egidio <julio@diegidio.name> - 2019-09-16 02:54 -0700
            Re: Object equals other object Arno Welzel <usenet@arnowelzel.de> - 2019-09-16 11:56 +0200
              Re: Object equals other object Julio Di Egidio <julio@diegidio.name> - 2019-09-16 03:09 -0700
                Re: Object equals other object Arno Welzel <usenet@arnowelzel.de> - 2019-09-16 13:47 +0200
                  Re: Object equals other object Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-09-16 13:43 +0000
    Re: Object equals other object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-09-17 00:53 +0200
      Re: Object equals other object Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-09-16 23:03 +0000
        Re: Object equals other object "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-09-17 16:16 +0200
          Re: Object equals other object Arno Welzel <usenet@arnowelzel.de> - 2019-09-17 16:57 +0200
        Re: Object equals other object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-09-17 16:58 +0200
          Re: Object equals other object Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-09-17 16:31 +0000
          Re: Object equals other object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-11-30 04:38 +0100
      Re: Object equals other object John G Harris <niam@jghnorth.org.uk.invalid> - 2019-09-17 18:46 +0100

Page 2 of 2 — ← Prev page 1 [2]


#37292

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2019-09-17 16:58 +0200
Message-ID<2515035.mvXUDI8C0e@PointedEars.de>
In reply to#37281
Jon Ribbens wrote:

> On 2019-09-16, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote:
>> See also my Bachelor thesis (<https://10.13140/RG.2.2.25521.63840>)
> 
> I don't think that's right.

True, it is not.  Typo, sorry.

It is <https://doi.org/10.13140/RG.2.2.25521.63840> instead.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#37293

FromJon Ribbens <jon+usenet@unequivocal.eu>
Date2019-09-17 16:31 +0000
Message-ID<slrnqo22jm.77b.jon+usenet@sable.unequivocal.eu>
In reply to#37292
On 2019-09-17, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote:
> Jon Ribbens wrote:
>> On 2019-09-16, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote:
>>> See also my Bachelor thesis (<https://10.13140/RG.2.2.25521.63840>)
>> 
>> I don't think that's right.
>
> True, it is not.  Typo, sorry.
>
> It is <https://doi.org/10.13140/RG.2.2.25521.63840> instead.

Thanks, that works.

If my German ever improves to the point that I can understand it,
I shall read it ;-)

[toc] | [prev] | [next] | [standalone]


#37907

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2019-11-30 04:38 +0100
Message-ID<5553995.lOV4Wx5bFT@PointedEars.de>
In reply to#37292
Thomas 'PointedEars' Lahn wrote:

> Jon Ribbens wrote:
>> On 2019-09-16, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote:
>>> See also my Bachelor thesis (<https://10.13140/RG.2.2.25521.63840>)
>> 
>> I don't think that's right.
> 
> True, it is not.  Typo, sorry.
> 
> It is <https://doi.org/10.13140/RG.2.2.25521.63840> instead.

JFTR: It is <https://doi.org/10.13140/RG.2.2.25521.63840/1> now, and in case 
that stops working, too, go to my ResearchGate profile, then “Research 
(items)”, then “Thesis”.  A copy of it is also linked from the ECMAScript 
Support Matrix.

I tried to get rid of nonsensical (instead of the properly included) 
references as misrecognized by ResearchGate, by uploading the PDF document 
again, but to no avail; still the DOI changed, too.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#37294

FromJohn G Harris <niam@jghnorth.org.uk.invalid>
Date2019-09-17 18:46 +0100
Message-ID<rq62oehgv2489i5d46l9ee2m2eub7fre41@4ax.com>
In reply to#37280
On Tue, 17 Sep 2019 00:53:28 +0200, Thomas 'PointedEars' Lahn
<PointedEars@web.de> wrote:

>Andrew Poulos wrote:
>
>> If I have
>> 
>> let a = { "c": 1 },
>>      b = { "c": 1 };
>> 
>> then
>> 
>> console.log(a === b); // false.
>> 
>> My question is, why was it decided that JavaScript is to return false
>> even if the two objects have the same number of properties, all the
>> properties are named the same, and all the properties values are
>> identical?
>
>History suggests that Brendan Eich decided to define it so for his language 
>because Java works this way.  See also my Bachelor thesis 
>(<https://10.13140/RG.2.2.25521.63840>), subsection 2.1 “ECMAScript”, and 
>references.
>
>Presumably Java, among other programming languages, defined it so because it 
>is easier and more efficient to compare two references to one object each 
>than to compare all properties of those objects.  Because then you only have 
>to compare two pointer values.
  <snip>

Another reason is that you can't have objects as keys in a map if you
can't tell if two object views are looking at the same object or two
different objects, even if the objects happen to have the same
property values (or none).

  John

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.javascript


csiph-web