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


Groups > comp.lang.javascript > #26419

Re: simple error

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!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: simple error
Date Mon, 29 Dec 2014 15:40:05 +0100
Organization PointedEars Software (PES)
Lines 41
Message-ID <44374431.ADoVJf56ko@PointedEars.de> (permalink)
References <m7pdlm$1ju$1@gregory.bnet.hr> <m7pj64$8tp$1@dont-email.me> <2919102.Zlc1T3vdmV@PointedEars.de> <m7pp88$4kg$1@dont-email.me> <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>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace solani.org 1419864024 22374 eJwFwYEBwCAIA7CXsAod51AZ/59g4jtWXJ7wOD4+6r65IBijSGaivy5YU0J2eaoobPO/cvQAI48RkA== (29 Dec 2014 14:40:24 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 29 Dec 2014 14:40:24 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwNy7EBACAIA7CX1FKEcwTk/xN0zBBCp+YWpQqbPa1qZIdUxk3a+ULYKheAMhpoi3NcHLSUTt9z6P0RjL0edqkVxg==
Cancel-Lock sha1:AwZKEym3XXFcj3t5M1bJqP+SqwM=
X-NNTP-Posting-Host eJwFwYERACEIA7CVWp5WHQc82X+ET/SZvistp0ZTuB0yz2wyXefiSYjJDhcBRGHe2m5O8/wMbhCC
Xref csiph.com comp.lang.javascript:26419

Show key headers only | 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