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


Groups > comp.lang.javascript > #25957

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 Tue, 21 Oct 2014 13:27:38 +0200
Organization solani.org
Lines 21
Message-ID <m25fv6$kmt$1@solani.org> (permalink)
References <dtac4adh7n65csjtrqt7lg59tbkfdv01kd@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Trace solani.org 1413890854 21213 eJwFwQEBwDAIAzBL7LSAHeiHfwlL6HFCiWCAy8UUfaql6sw1a5f9ood/5+6dLUyICRgAfyTAEPc= (21 Oct 2014 11:27:34 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Tue, 21 Oct 2014 11:27:34 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
X-User-ID eJwFwQERADEIAzBLe6D0kMNg9S/hE3h+OYxEBgTFFX112ezz9LReSK+zQpjZEEWr9nGssX4uzBEW
In-Reply-To <dtac4adh7n65csjtrqt7lg59tbkfdv01kd@4ax.com>
Cancel-Lock sha1:lFPDrVQMzxnF2ujtFAXXX2/Oswo=
X-NNTP-Posting-Host eJwNwokRACEIBLCWEJbHchTZ/ku4m8QtVnQiPOB0tv0wS7HzZBzQapjbKHf2KJ6ypPsJSnD1AyF9ETM=
Xref csiph.com comp.lang.javascript:25957

Show key headers only | View raw


John Harris wrote:

> To sum up, C++, Java, and suchlike fully *support* classes whereas 
> ECMAScript allows programmers to *implement* classes but provides 
> less than full *support* for them.

It seems to be important to distinguish between the Ecma-262 editions.
Your notes seem to take into account only Ecma-262 Edition 3. Edition
5.1 (or maybe 5 already) introduced Object.seal()[1] which can be
applied to the prototype object. 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.

[1] <http://www.ecma-international.org/ecma-262/5.1/#sec-15.2.3.8>
[2]
<http://wiki.ecmascript.org/doku.php?id=strawman:maximally_minimal_classes>
[3] <http://wiki.ecmascript.org/doku.php?id=harmony:private_name_objects>

-- 
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