-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move import.meta from Statements to Operators/Expressions #17547
Conversation
- import | ||
- import.meta | ||
browser-compat: javascript.statements.import_meta | ||
browser-compat: javascript.operators.import_meta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm currently working on defining "page types" for MDN reference docs. A page type is a front matter key that identifies the "kind of thing" that a particular reference page documents. For example, an instance method. The purpose of this is to be able to apply common treatment to similar pages. For example:
The main tracking bug for this is at #15539. I think we have a reasonable set of types defined for Web/API (#16255). But I have questions about the JavaScript documentation: it's not always clear to me (outside "Global Objects" and not even always there) how we currently categorise pages, or how we should. I've made a start on this at #16156, and noted the many things I'm not sure about. Since you seem to understand the taxonomy of things in JS I'd like to hear what you think we should do here. I want this to be a pragmatic exercise: that is, I want to define page types that make distinctions that are important to our purposes, not just for the sake of it. "Our purposes" here is a little vague but includes things like wanting to list different kinds of thing in different places in the sidebar (or other nav elements like landing pages), or wanting to allow/mandate different page components in different kinds of thing. So if you had thoughts on what would be a sensible taxonomy for our JavaScript docs I would love to hear them. |
Oh, I didn't realize #16156 existed... IMO, the current categorization is quite logical. I would speak purely in terms of taxonomy, disregarding whether that fits reader intuition, how the current organization works:
Not distinguishing between "operators" and "expressions" is a quite clever move. "Operators" aren't a super well-defined construct. For example, some call Anything that can appear on its own line and is not an expression is a declaration/statement. (There's probably a better definition but I'm too lazy to think of one :P) I would take a deeper look at the renovated page types later; there are some immediately weird things like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thank you @Josh-Cena !
Summary
See #17402 (comment)
Motivation
Supporting details
Related issues
Metadata