[swift-dev] Typos while hacking on the constraint system

David Zarzycki zarzycki at icloud.com
Thu Aug 17 11:55:31 CDT 2017


Hello,

More than once, I’ve made typos while hacking on the constraint system because the key variables are often named “type1” and “type2”. Beyond sharing 4 out of 5 characters, the ‘1’ and the ‘2’ are right next to each other on the keyboard, and typing the other by accident results in code that still compiles.

Are “type1” and “type2” really the most apt names? Is something preventing better names from being used? Wouldn’t “fromTy” and “toTy” be better and less typo prone?

Thanks,
Dave


More information about the swift-dev mailing list