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
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to