Closed duglin closed 5 months ago
Normally digits aren't great as first characters of identifiers
True from personal preference (human perspective) - but is there a technical reason why a machine would care?
If we want to restrict it w/o breaking the spec we could say they "SHOULD start with a-z" instead of "MUST"
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 9x
isn't a valid variable name, and often not allowed as a structure property name. Which means people would need some kind of mapping. Possible, but a pain for people who are trying to support things in a generic way.
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?
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"