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


Groups > comp.lang.javascript > #26419

Re: simple error

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: simple error
Date 2014-12-29 15:40 +0100
Organization PointedEars Software (PES)
Message-ID <44374431.ADoVJf56ko@PointedEars.de> (permalink)
References (4 earlier) <1745799.hd9xs91tD1@PointedEars.de> <m7ptu8$mbq$1@dont-email.me> <m7pv4a$72s$1@solani.org> <m7qrql$3no$1@dont-email.me> <m7rec6$fsf$1@solani.org>

Show all headers | View raw


Christoph M. Becker wrote:

> Talking about ECMAScript (implementations) clarifies things considerably,
> because then we can look up the relevant part of the current
> specification[1] (instead of speculating):
> 
> | A conforming implementation of ECMAScript is permitted to support
> | program and regular expression syntax not described in this
> | specification.
> 
> So the code above is not in error.

The above code would not be in error if it were considered code in/for an 
implementation of ECMAScript (in this case, Mozilla JavaScript), because 
that would still be a conforming implementation of ECMAScript (Editions 1 to 
5.1, excluding 4).

In this case, however, it is not in error because the Mozilla JavaScript 
version in question is an implementation, at least with regard to the syntax 
feature relevant here, of the latest working draft of ECMAScript Edition 6, 
which specifies that syntax instead.  (Voting on that draft to become a 
standard was planned for this year, but eventually postponed. [2])

ISTM that implementations can extend an Edition of the Specification in this 
way, which, if adopted, could lead to additional standard syntax in later 
Editions, was the secondary goal when this paragraph was introduced with the 
first Edition.  The primary goal was to reconcile the differences between 
Netscape JavaScript 1.1 and Microsoft JScript 1.0 (and other versions and 
implementations later), so that both existing, used languages could have 
syntax extensions but still be conforming implementations of ECMAScript.  
IOW, "standard followed practice" from the beginning.

> [1] <http://www.ecma-international.org/ecma-262/5.1/#sec-2>

[2] <http://wingolog.org/archives/2014/12/09/state-of-js-implementations-2014-edition>

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

simple error Haris Bogdanovich <haris.bogdanovic@gmail.com> - 2014-12-28 18:12 +0100
  Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 18:25 +0100
    Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 21:00 +0200
      Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 21:32 +0100
        Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 23:56 +0200
  Re: simple error Denis McMahon <denismfmcmahon@gmail.com> - 2014-12-28 18:46 +0000
    Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 21:13 +0200
      Re: simple error Denis McMahon <denismfmcmahon@gmail.com> - 2014-12-28 23:19 +0000
        Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 01:03 +0100
        Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-29 01:08 +0100
    Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 20:13 +0100
      Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 22:30 +0200
        Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 21:44 +0100
          Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 23:50 +0200
            Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-28 23:10 +0100
              Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 03:10 +0100
                Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-29 13:17 +0100
                Re: simple error Tim Streater <timstreater@greenbee.net> - 2014-12-29 12:30 +0000
                Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-29 14:49 +0200
                Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 15:18 +0100
              Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-29 08:20 +0200
                Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-29 12:36 +0100
                Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 15:40 +0100
            Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 01:04 +0100
              Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-29 08:09 +0200

csiph-web