-
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: Clarify RegExp grammar parameter U → UnicodeMode #2411
Editorial: Clarify RegExp grammar parameter U → UnicodeMode #2411
Conversation
0739d67
to
e0cea50
Compare
Bike-shedding opinion:
|
+1
I think it would mostly be confusing, as it would imply a connection that isn't there.
That reduces searchability. Ctrl+F "Uni" would return lots of unrelated hits. |
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.
Looks fine now.
I'd rather see us have a consistent editorial direction here, either going the verbose route for all grammar flags or the terse route for all grammar flags. We can discuss the tradeoffs of each in the editor call, but right now I don't think we should do this as a 1-off change. |
Just to be clear, I agree with this! As I said:
The reason I proposed doing it as two separate patches is because this one would (editorially) affect the RegExp set notation spec proposal whereas the |
We talked about this in the editor call. Longer term, we would like to link all of the grammar flags to a place that has descriptions. But for now, changing |
Any suggested new name for |
|
3c626bf
to
b025795
Compare
I’ve gone ahead and updated the patch to use
That's interesting. I never thought of these as "grammar flags". The spec refers to them as grammar parameters. |
I suggest changing the PR title to say "UnicodeMode" |
3d0c24c
to
7a79833
Compare
Is anything blocking this? I'd be happy to resolve the conflicts if that moves things along. |
@mathiasbynens That won't be necessary. We just need @bakkot or @syg to find some time to do a review. |
b025795
to
d03e65a
Compare
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.
This LGTM, sorry for the delay. I've also rebased, so it should be good to land.
d03e65a
to
8d2f270
Compare
Whoops, fixed. |
This makes the parameter more easily searchable while clarifying its meaning.
8d2f270
to
0e25cc2
Compare
This makes the parameter more easily searchable while clarifying its meaning.
Upstream PR: tc39/ecma262#2411
This makes the parameter more easily searchable while clarifying its meaning. Issue: tc39#2411
This makes the parameter more easily searchable while clarifying its meaning. Issue: tc39#2411
This makes the parameter more easily searchable while clarifying its meaning. Issue: tc39#2411
This makes the parameter more easily searchable while clarifying its meaning.
This came up while working on the draft spec for the RegExp set notation proposal, which introduces another RegExp grammar parameter that is related to Unicode. Rather than sticking to single letters, it seems nicer to move to more descriptive names.
If the editors are open to this change, I’d be happy to work on a patch that renames
N
as well (perhaps toWithNamedCaptureGroups
).cc @markusicu @markusicu @sffc