Tuple vs Struct in Swift
问题 I understand that Swift's tuples serve, for example, as a simple way for a function to return multiple values. However, beyond this "simplicity aspect", I don't see very well any necessity of using tuples instead of structs. Therefore, my question: in terms of design, is there any scenario where tuples are clearly a better choice than structs? 回答1: This question of a slightly "discussion" nature, but I'll add two points in favour of sometimes preferring tuples over structures. Native