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
Reserve more numeric types. #907
The only approach I know of and I consider (more or less) "correct" would be the one mentioned in the comment linked by @petrochenkov above.
That would protect against breakage by explicitly having all existing built-in types part of
That said, I almost forgot about it, and it requires associated constants to be done backwards-compatibly (or as close as we can get to that).
Thanks for the RFC! After some discussion, however, we don't think that this is the strategy that we would want to take. It is arguably a resolve bug which prevents shadowing primitives and we can consider it a requirement that adding a type like