-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: Convert @@ notation to intrinsics notation for well-known Symbols #1314
Conversation
@gibson042 i would love to see auto-linking of well-known symbols, with or without this change. I've tested the HTML output locally and atm they don't link anywhere, before or after. |
This would also affect the HTML Standard. cc @domenic |
Happy with whatever. It would be nice cross-SDO citizenship work to make a corresponding HTML Standard PR, but it's certainly not required. |
@domenic i'm happy to try my hand at that once an approach gets consensus here, prior to merging this one. |
Would it be possible to use a syntax more similar to |
What’d you have in mind? It would have to be apparent that it’s not a property lookup on %Symbol%, i suspect. |
Sorry, I don't have a concrete suggestion, and agree it shouldn't imply actual property access. But I would prefer that editorial churn like this would somehow inch us closer to being readable by normal programmers. |
My preference would be to use the %SymbolSpecies% notation and move the well-known symbols table to immediately following the intrinsics table. That way we reduce the total number of novel syntaxes in the spec. I don't actually think there is much of an important distinction between intrinsics and well-known symbols except for the cross-realm interaction. They're similar enough that it makes sense to put them near each other and use the same syntax, IMO. |
See also #385. |
figure-2.png also needs to be updated, since it contains the text |
I'm thinking that we should leave things the way they are for now, since |
…c39#1314) - this avoids a conceptual conflict with decorators, when they land
…c39#1314) - this avoids a conceptual conflict with decorators, when they land
Decision from the editor call today was to change |
…c39#1314) - this avoids a conceptual conflict with decorators, when they land
@ljharb Out of curiosity: what's up with "luke_skywalker"? |
@Josh-Cena this PR kills at-at's |
Oh! lmao 😄 |
Just want to drop in with an extra thanks to @ljharb for doing the HTML and Web IDL PRs. That kind of cross-ecosystem citizenship is much appreciated. |
PR for ECMA-402: tc39/ecma402#905 |
whoops, i should have made that one too. thanks! |
Open to bikesheds; other alternatives I considered:
%SymbolSpecies%
, and hardcoding that table, while removing the "well-known symbols table". This felt like it would lose some clarity around intrinsics vs well-known-symbols.%Symbol%species%
- this would require upstream support in ecmarkup, so i opted not to do it for now.