-
Notifications
You must be signed in to change notification settings - Fork 107
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: Start all fields and slots with an uppercase code point #81
Comments
If it's a 'procedurally generated' name, then I don't think this rule needs to apply the same way. However, I like the way that formatToParts changes this. |
yeah, I do have a local branch for this, but lets wait until after formatToParts() lands for 4th edition. |
hopefully 5th edition. |
These is related to #56 as well. We are almost there, and lowercase is only used in match resolvers and locale data records as far as I can tell. @anba, @littledan, do you guys think that this is realistic? |
Not sure what you are asking. The change still seems like a good idea to me. |
@leobalter @littledan I also wonder if we should keep with issue open. Now that I submitted #401, all the remaining non-capitalized record fields are from constructing records from locale data (for example, in resolveLocale). Maybe it's best to simply allow non-capitalized field names in 402 because of this case. |
@spectranaut I'm glad your patch landed. I agree it wouldn't make sense to capitalize a record field like |
Related: #339 |
@gibson042 this still needs to happen, right? |
I don't feel strongly about it. The lowercase field names don't bother me, especially those that directly correspond with the canonical form of BCP 47 language subtags or Unicode -u- extension keys in e.g. [[AvailableLocales]] and [[RelevantExtensionKeys]]. But I would like to uppercase [[locale]] and [[extension]] field names in locale records (probably renaming at least [[locale]] in the process), [[localeMatcher]]/[[dataLocale]]/etc. in ResolveLocale, and anything else that is not reflecting externally-defined names. |
Happy to let the editors decide whether to either fix this issue or close this issue. |
In order to align with 262 on this, we will have to refactor part of the spec due to the following:
This is very tricky, but worth the effort IMO. I might delay this work until after 3rd edition because
formatToParts
will change the way we transform the patterns for number and datetime format, which can facilitate this work./cc @littledan @bterlson
The text was updated successfully, but these errors were encountered: