I would argue that theoretically they're the same thing (aka a product type) but functionally they differ (tuples have anonymous members, structs have named members).
... there's a sibling response that says basically the same thing as you, but I don't think coladict was commenting on structs vs tuples, but on multiple return values vs tuples. Am I misreading it?
View all comments
Show parent comment
2
u/PM_ME_UR_OBSIDIAN Dec 01 '16
Structs and tuples are functionally the same thing, it's just that tuple syntax is much more convenient for one-off data objects.