Comments (6)
Where would the link go to? There are 2 sections that define IteratorBindingInitialization: 14.1.18 and 14.2.14. (In general, an operation that is 'sub-defined' based on grammar productions is defined over multiple non-contiguous sections.)
For a while, the draft spec had an annex that listed such operations, and the sections where they were defined. That would have provided a plausible endpoint for such a hyperlink.
from es-spec-html.
I know :( --- Like I said, "it would be easier..." but I think it could be possible to special case some of them in the mean time
Maybe @allenwb would be willing to make some adjustments to the document to be specific about which version is being referred to
from es-spec-html.
It sounds like you're assuming that an invocation of such an operation will only 'resolve' to one sub-definition in practice. (And so, if the spec could just hint which one that was, the hyperlink could go to it.)
But in general, that's not the case. For instance, in the example you cite, in FunctionDeclarationInstantiation, the calls to IteratorBindingInitialization will sometimes resolve to a sub-definition in 14.1.18, and sometimes to a sub-definition in 14.2.14. So it's not like the spec can provide more specific info that would allow you to link to just one or the other.
from es-spec-html.
awbjs covered that point on the bug. I think it's bogus, since each listing for these algorithms contains numerous separate algorithms anyways, depending on the grammar it's operating on.
But regardless, it should be able to show a list of each version, with a short description (which would be easier if some metadata for each one were provided), and just generally save a lot of time when digging through the draft
from es-spec-html.
awbjs covered that point on the bug.
Specifically, https://bugs.ecmascript.org/show_bug.cgi?id=4275 (for anyone else reading this issue).
I think it's bogus, since each listing for these algorithms contains numerous separate algorithms anyways, depending on the grammar it's operating on.
I don't follow why that makes you think it's bogus.
But regardless, it should be able to show a list of each version, with a short description
So something like the annex I mentioned? Maybe AWB could be persuaded to reinstate it in the draft spec for ES7. But, yes, the HTML version of ES6 could conceivably generate something like that "on its own".
from es-spec-html.
I don't follow why that makes you think it's bogus.
Linking to 13.2.3.6 would still be linking to a polymorphic set of steps --- it's just that there are multiple sets of these polymorphic sets of steps (which is weird, but I guess that's useful for the paper edition)
from es-spec-html.
Related Issues (20)
- Delete { REF } crud in Annex A
- Make it nicer when the viewport is narrow (mobile) HOT 3
- Sticky headings fight with fragment links HOT 2
- Link Abstract Relational Comparison
- maybe two spec for two different environment:
- Link to the official ES5.1 spec (PDF): change it in order to allow to easily retrieve the HTML version
- Figure 2 wasn't updated in Rev27 HTML
- Recently Firefox has started hanging upon opening the spec HOT 2
- grammar Set.prototype.forEach HOT 2
- Map.prototype.forEach may not specify mutation during enumeration (maybe fine)
- Section 18.4.5's contents are garbled --- was System removed from draft entirely? HOT 3
- Wrong indentation in section 14.6.2.2 (#sec-expression-rules) BitwiseANDExpression etc.
- Specify behaviour of forEach when structure is mutated during iteration HOT 2
- Minify HTML HOT 3
- Highlight the "opt" subscript in BNF notation HOT 6
- Erroneous indentation in Section 4, (non-normative reference list) HOT 1
- Update to April 14, 2015 Rev 38 Final Draft
- 20.3.1.16: inconsistent font
- LogicalANDExpression definition HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from es-spec-html.