Tuple or struct as return type?

Martin martin.brzenska at googlemail.com
Sat Feb 6 18:02:46 UTC 2021


Hi,

lets say i want to create a function that returns multiple values 
- e.g. Tuple!(string,string).

Why/when i should prefer Tuple as a return type over returning a 
struct (or even string[2] in this case)?

Thank you



More information about the Digitalmars-d-learn mailing list