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


Groups > comp.lang.javascript > #25978

Re: ECMAScript and classes

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.javascript
Subject Re: ECMAScript and classes
Date Thu, 23 Oct 2014 18:37:40 +0200
Organization solani.org
Lines 42
Message-ID <m2basb$ru4$1@solani.org> (permalink)
References <dtac4adh7n65csjtrqt7lg59tbkfdv01kd@4ax.com> <m25fv6$kmt$1@solani.org> <f82i4ath9p68jrsomcgg5atkdgrrb9v2rn@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Trace solani.org 1414082251 28612 eJwNwgERwDAIA0BLdEmgyCll+Jew/b3gy2/Q5dRo/BkKpyqhOOx35e4oTpEjGBlhsv4jE/gAFHAQSA== (23 Oct 2014 16:37:31 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 23 Oct 2014 16:37:31 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
X-User-ID eJwFwQkBACAIBLBK8h0QBxT6R3AzAeG6wqC2tuyR8uYmN6trxQJ9zHm0abrOpMGRj6Vqgj4SvBDd
In-Reply-To <f82i4ath9p68jrsomcgg5atkdgrrb9v2rn@4ax.com>
Cancel-Lock sha1:XK7JhYBkkC/QrYyK7bDHMV88nfg=
X-NNTP-Posting-Host eJwNysEBwCAIA8CVREhkHaDN/iPovQ9O45wgGBDkX1fF/E4pA91L6DiTY7B+a5K5C3zVdq4LMGURAA==
Xref csiph.com comp.lang.javascript:25978

Show key headers only | View raw


John Harris wrote:

> On Tue, 21 Oct 2014 13:27:38 +0200, "Christoph M. Becker"
> <cmbecker69@arcor.de> wrote:
> 
>> Edition
>> 5.1 (or maybe 5 already) introduced Object.seal()[1] which can be
>> applied to the prototype object. 
> 
> It wouldn't be just the prototype object. It would be all the
> user-defined objects in the prototype chain and each class instance
> object as it is created. 

Usually you wouldn't seal the class instances, though, but rather
prevent their extension and maybe remove the configurable attribute on
the individual properties.

> All of which has to done by the Poor Old
> Programmer, of course.

The "Poor Old Programmer" could, however, write a function that does all
this for him.

>> Ecma-262 Edition 6 might introduce
>> "maximally minimal" classes[2] and private name objects[3] which would
>> provide better support for classes in the classical sense.
>   <snip>
> 
> The current draft ES6 allows only one constructor function per class.

This restriction applies to several object-oriented programming
languages with classical inheritance.

> So, ES6 will likely still only provide partial *support* for classes,
> while still allowing full *implementation* of classes as before.

What would be full *support* for classes.  Isn't multiple inheritance an
important concept, for instance, which is only supported by very few
languages?  What about multiple dispatch?

-- 
Christoph M. Becker

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


Thread

ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-10-21 10:49 +0100
  Re: ECMAScript and classes Gregor Kofler <usenet@gregorkofler.com> - 2014-10-21 12:25 +0200
    Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-10-23 11:34 +0100
  Re: ECMAScript and classes "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-10-21 13:27 +0200
    Re: ECMAScript and classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-21 19:27 +0200
      Re: ECMAScript and classes Stefan Weiss <krewecherl@gmail.com> - 2014-10-22 00:15 +0200
      Re: ECMAScript and classes "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-10-23 14:45 +0200
      Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-10-23 15:12 +0100
        Re: ECMAScript and classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-01 20:59 +0100
          Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-11-03 15:56 +0000
            Re: ECMAScript and classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-08 19:11 +0100
              Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-11-10 14:48 +0000
                Re: ECMAScript and classes Tim Streater <timstreater@greenbee.net> - 2014-11-10 15:54 +0000
                Re: ECMAScript and classes "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-10 18:02 +0100
                Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-11-11 11:08 +0000
                Re: ECMAScript and classes "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-13 17:48 +0100
                Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-11-13 20:32 +0000
                Re: ECMAScript and classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-10 23:03 +0100
                Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-11-11 17:03 +0000
    Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-10-23 14:58 +0100
      Re: ECMAScript and classes "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-10-23 18:37 +0200
        Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-10-24 11:30 +0100
          Re: ECMAScript and classes "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-10-24 19:45 +0200
            Re: ECMAScript and classes John Harris <niam@jghnorth.org.uk.invalid> - 2014-10-26 10:43 +0000

csiph-web