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


Groups > comp.lang.javascript > #26076

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 Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: ECMAScript and classes
Date Sat, 01 Nov 2014 20:59:46 +0100
Organization PointedEars Software (PES)
Lines 42
Message-ID <5228816.s9PhMjcOHp@PointedEars.de> (permalink)
References <dtac4adh7n65csjtrqt7lg59tbkfdv01kd@4ax.com> <m25fv6$kmt$1@solani.org> <2243270.nPrEYIu7m9@PointedEars.de> <853i4a5opg36165ev602k2rhrsigpjlanl@4ax.com>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1414871987 25137 eJwNysENADEIA7CVjkJCOg5CsP8I16clw2nsDIKBxS4y0Exu5fP0keyjG+HzSiiuX2lPTVfpBwcGEGU= (1 Nov 2014 19:59:47 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sat, 1 Nov 2014 19:59:47 +0000 (UTC)
User-Agent KNode/4.14.1
X-User-ID eJwVzMERACEIA8CW1IRIOyDSfwnezf7XoKmzKROtf6tiSso+qJs7R166G6Iudyel6kKMGGCgM8Ib3kx8xXp+4BZ3
Cancel-Lock sha1:YcpWmiLzl3OVI8IkobuwiWFSu8o=
X-NNTP-Posting-Host eJwNxcEBwEAEBMCWOGtJOSH0X8JlPuNGZQfohK+vJjiTPQXxegJR0GNKcZE49lH+AVt7e05eAMwP0A==
Xref csiph.com comp.lang.javascript:26076

Show key headers only | View raw


John Harris wrote:

> Thomas 'PointedEars' Lahn wrote:
>> That Edition 6 might (I daresay, probably will) re-introduce classes in
>> some way appears to be the result of the Harmony agreement:
>>
>> <https://mail.mozilla.org/pipermail/es-discuss/2008-August/006837.html>
> 
> Replace
>   "re-introduce classes"
> by
>   "re-introduce *support* for classes".

There is a “class” keyword (which was therefore a “future reserved word” 
until then [1]), and the parts of the code that it declares *are* classes in 
that language:

<http://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-functions-and-classes>

The classes of the ES 4 Draft [2], which was implemented by some in 
production quality [3][4], are different at least in the fact that built-in 
types are classes as well.

> But not full support it appears.

That depends on how you define “class”.  The same as it is unreasonable to 
define OOP solely by the features of OOP present in, e.g., Java, it is 
unreasonable to define “class” only as it is used elsewhere, and then deny 
the existence of “classes” or “full support for classes” in an (draft) 
Edition of ECMAScript.

[1] <http://ecma-international.org/ecma-262/5.1/#sec-7.6.1.2>
[2]  
<https://web.archive.org/web/20070711050228/http://www.mozilla.org/js/language/es4/core/classes.html>
[3] <http://msdn.microsoft.com/en-us/library/ms974588.aspx>
[4] <http://help.adobe.com/en_US/AS2LCR/Flash_10.0/00000728.html>

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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