Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: move most (*Type).IsFoo methods to (EType).IsFoo #16929
In type.go, we have a bunch of helper methods like IsInteger, IsSigned, IsPtrShaped, etc. that currently can only be used on specific types (i.e.,
I think we should change Type's
Some need to stay on
It's a bit redundant for the single-kind methods like IsMap to be moved to EType, but for consistency we might as well move them too.
Filing as an issue in case anyone objects or has alternative proposals.