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


Groups > comp.lang.javascript > #37285

Re: Object equals other object

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.javascript
Subject Re: Object equals other object
Date Tue, 17 Sep 2019 10:45:53 +0200
Lines 44
Message-ID <gubkq2F29jbU1@mid.individual.net> (permalink)
References <Z4edne0EI5e3auPAnZ2dnUU7-dPNnZ2d@westnet.com.au> <XnsAACC5BADA63FDeejj99@194.109.6.166> <RMadnQGkRsK51eLAnZ2dnUU7-I3NnZ2d@westnet.com.au> <evjunel40s4tv695ks52c89mmd2v66rmhp@4ax.com> <6fcd7ab4-a730-4522-9aa5-6f2f1a2b0b69@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace individual.net DgFR4/ih91kKqWHRCBz2twFIlK8vDPHKjOMsS11wRFryJmE5iJ
Cancel-Lock sha1:pPpeeuQ3btAC1A7usPOa0cI1BrQ=
In-Reply-To <6fcd7ab4-a730-4522-9aa5-6f2f1a2b0b69@googlegroups.com>
Content-Language en-US
Xref csiph.com comp.lang.javascript:37285

Show key headers only | View raw


On 16.09.19 11:21, Julio Di Egidio wrote:

[...]
> More generally, you guys should try and get your head around the fact that JS
> is NOT an object-oriented language, not by any sensible stretch: and then many
> things become at least clearer.

<https://www.ecma-international.org/ecma-262/10.0/index.html#sec-global-object>

"18 The Global Object"

<https://www.ecma-international.org/ecma-262/10.0/index.html#sec-fundamental-objects>

"19 Fundamental Objects

19.1 Object Objects

19.1.1The Object Constructor

The Object constructor:

    is the intrinsic object %Object%.
    is the initial value of the Object property of the global object.
    creates a new ordinary object when called as a constructor.
    performs a type conversion when called as a function rather than as
a constructor.
    is designed to be subclassable. It may be used as the value of an
extends clause of a class definition."

Hmmm... at least the specification is then quite confusing if the
language is not object oriented.

And even classes exist since ECMAScript 2015:

<https://www.ecma-international.org/ecma-262/10.0/index.html#sec-class-definitions>

<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes>

So why should one consider JavaScript *not* object oriented?


-- 
Arno Welzel
https://arnowelzel.de

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


Thread

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

csiph-web