Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: rename a bunch of things #27167
Over time, I've noticed many things in the compiler that I'd like to rename, but I haven't because of the merge pain it causes and the review annoyance. I propose to use this issue to accumulate (and bikeshed) a list of renamings that we as a community want. Then a trusted contributor can do a single, automated bulk rename all in one commit.
I think this should happen shortly after the freeze starts. That gives everyone maximum opportunity to get all their CLs submitted. (Doing it early in the cycle is the worst idea, as it potentially breaks three months of private CL work.)
I'll start off the list with:
I'd also like new names for all of
OCOM -> OCOMPLEMENT. I always parse the former as COMmunicate.
There's a lot of stuff in the compiler that could be camel-cased instead of all lowercase.
I want to change the sense of kindNoPointers. That's a bit more than just a rename, so maybe that's a separate change.
As an experiment, further discussion to occur at https://docs.google.com/document/d/19_ExiylD9MRfeAjKIfEsMU1_RGhuxB9sA0b5Zv7byVI/.
pushed a commit
Nov 21, 2018
referenced this issue
Dec 14, 2018
added a commit
Dec 30, 2018
This bulk rename went reasonably smoothly for Go 1.12. Let's do it again (assuming we find things we want to rename). Let's use this issue as a scratch pad to jot down things we'd like to rename for Go 1.13, and then near the end of the cycle we'll use a google doc again to discuss and agree on new names.