W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

Writing spec algorithms in ES6?

From: Dimitri Glazkov <dglazkov@google.com>
Date: Thu, 11 Jun 2015 13:32:30 -0700
Message-ID: <CADh5Ky3VF9CESWfreU-8NwJbO9MtjkSV9mhFbk38iFpAsuVYZw@mail.gmail.com>
To: public-webapps <public-webapps@w3.org>

Many specs nowadays opt for a more imperative method of expressing
normative requirements, and using algorithms. For example, both HTML and
DOM spec do the "run following steps" list that looks a lot like
pseudocode, and the Web components specs use their own flavor of

I wonder if it would be good the pseudo-code would actually be ES6, with
comments where needed?

I noticed that the CSS Color Module Level 4 actually does this, and it
seems pretty nice:


Received on Thursday, 11 June 2015 20:32:57 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:31 UTC