> I still think this was a good decision. With the exception of the > zip/unzip functions, all the code I touched when removing tuples got > more readable in the process. Pure, abstract pairs / triples of things > are rare. Usually, the fields have clear roles, and it is beneficial > to name them. 'val._0' does not tell you what you're getting, and I > found myself constantly looking up the order of the fields in tuples, > even those returned by functions I wrote myself.
So you acknowledge that zip/unzip are more readable with tuples, but you feel that in many other cases records are preferable when it could become hard to remember which element is which. I agree! But this doesn't argue against having tuples in the language, it argues against using tuples when a record would be preferable. Dave _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
