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

Re: Writing spec algorithms in ES6?

From: Olli Pettay <olli@pettay.fi>
Date: Fri, 12 Jun 2015 01:22:59 +0300
Message-ID: <557A0A43.8020908@pettay.fi>
To: public-webapps@w3.org
On 06/11/2015 11:41 PM, Boris Zbarsky wrote:
> I would actually prefer some sort of pseudocode that is _not_ JS-looking, just so people don't accidentally screw this up.

This one please - otherwise it would be way too easy to think the algorithm would run in the context of the page.

But usually the algorithms in HTML and DOM specs are quite easy to follow. The issues in readability, IMO, come from using tons of (usually
spec-internal) links in algorithms, but I don't know how to solve that issue. Perhaps some tool to actually inline the relevant text from the
linked place to the algorithm definition - or at least have some option to do that.

-Olli
Received on Thursday, 11 June 2015 22:23:33 UTC

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