-
Notifications
You must be signed in to change notification settings - Fork 584
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
Should attribute names be allowed to start with a digit? #1285
Comments
True from personal preference (human perspective) - but is there a technical reason why a machine would care?
Is there any prior art where this has become a problem after the fact? |
The scenario that keeps popping in my head is one where someone tries to map CE attributes to programming language variables... and |
Wasn't aware of mapping attributes to variable names (how would that work?). For structures I agree but IMHO extension attributes are supposed to be (parsed as) strings so any (?) map type (with string keys) in a programming language should work? |
Fixed cloudevents#1285 Signed-off-by: Doug Davis <dug@microsoft.com>
Fixed cloudevents#1285 Signed-off-by: Doug Davis <dug@microsoft.com>
Today the spec says:
Normally digits aren't great as first characters of identifiers.
If we want to restrict it w/o breaking the spec we could say they "SHOULD start with a-z" instead of "MUST"
The text was updated successfully, but these errors were encountered: