Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
fmt: drop Scanf %X support for bytes and strings? #13585
CL https://go-review.googlesource.com/#/c/15689/ made a trivial change to fmt.Scanf to make %X an alias for %x when applied to byte and string values.
The only real effect here is that now people can write code using %X, which will only work with Go 1.6 or later, when they could instead use %x and work with Go 1 or later.
Should we keep the new %X support?
The original issue was #12940.
It seems like a regularization to accept %X, but there is always a cost to any addition of a feature. Taking that worry too far, we can't change anything ever.
The problem of versioning is being addressed by the community, and in that light I think it's fine for this minor cleanup to persist.