Re: Writing spec algorithms in ES6?

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