text/scanner: rename AllowNumberbars? #32661
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
release-blocker
Milestone
I was reviewing changes for Go 1.13 and I noticed that a new name "AllowNumberbars" was added to text/scanner:
We should consider renaming this before the Go 1.13 release for two reasons:
Unless "numberbar" is a term of art I'm unaware of, the capitalization doesn't match current Go convention (such as in the name ScanRawStrings a few lines above): it should be AllowNumberBars.
The name is derived from underbar as a name for the _ character which is also used in the documentation comment; I believe this usage is uncommon in American English as compared with underscore. Indeed, the updated spec uses underscore:
So, despite being longer, I think that AllowNumberUnderscores (or AllowNumUnderscores?) would be better.
This name was added in CL 163079 and as far as I can tell, the name hasn't been debated yet. (Apologies if this shed was already painted.)
/cc @griesemer
The text was updated successfully, but these errors were encountered: