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


Groups > comp.lang.javascript > #25978

Re: ECMAScript and classes

From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.javascript
Subject Re: ECMAScript and classes
Date 2014-10-23 18:37 +0200
Organization solani.org
Message-ID <m2basb$ru4$1@solani.org> (permalink)
References <dtac4adh7n65csjtrqt7lg59tbkfdv01kd@4ax.com> <m25fv6$kmt$1@solani.org> <f82i4ath9p68jrsomcgg5atkdgrrb9v2rn@4ax.com>

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