-
Notifications
You must be signed in to change notification settings - Fork 100
Is method-specific-id supposed to be equivalent to param-char? #45
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
Comments
@talltree and @peacekeeper can you please take a look at the ABNF simplification that @aljones15 is suggesting in w3c-ccg/did-spec#223 ? If it looks good to you, this is editorial and one of the Editors can make the change. |
just to make it easier to see the issue I am copying the content here:
if you remove the pct-encoded from param-char then method-specific-id appears to be equivalent to method-specific-id.
this line makes the 2 equivalent because method-specific-id does include ":" inside of it with 0 or more idchars. hence a valid method-specific-id could be:
param-char is much easier to read as it uses Alternatives to describe it's strings. additionally idchar is inconsistently named because the other ABNF rules are snake-case. I guess it feels like idchar and param-char are/were supposed to be different strings, but it was generalized to the point that the two are effectively identical. |
@aljones15 Sorry it took me so long to get to this. (Any ABNF discussion always requires a little flow time to analyze.) Having taken that time, I agree with you, I don't see any issues with this enhancement and it does indeed simplify the ABNF. Before closing this issue, I'd like @peacekeeper to also review it and see if he agrees. If so, Markus, please tag it as Ready for PR. |
@aljones15 when you say
I believe you really mean
right? |
Personally I don't think eliminating all repetition in ABNF is always a good thing, sometimes it's "easier to read" if the rules are more verbose. I think my preferred approach would be the following, which simplifies
But I don't feel strongly about it, I'm also fine with doing what @aljones15 proposed! |
After reviewing this again, I now believe that And as I already mentioned above, while @aljones15 's proposal could remove some repetition in the ABNF, personally I don't feel like that actually makes it easier to read. I prefer to keep the rules Therefore I propose to close this issue. |
I'm in favor of closing this issue as well. |
@aljones15 since we haven't heard back from you after some discussion, I am going to close this, but feel free to simply open a new issue if you still think the current ABNF can/should be improved! |
@aljones15 moved from CCG (w3c-ccg/did-spec#223)
The text was updated successfully, but these errors were encountered: