Tuple or no Tuple? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Tuple or no Tuple?

Why some people consider a bad practice return a Tupple in a method ?

29th Dec 2016, 2:42 PM
Hermez Mont
Hermez Mont - avatar
2 Answers
+ 1
My guess would be because you already can return multiple variables with the out parameters or even references
30th Dec 2016, 6:15 PM
Sérgio Fernando Martins Borges Gutierres
+ 1
I believe it's the way tupples r currently used, it doesn't seem elegant seeing stuffs like tuple.item1 or tupples.item2 in code. I believe with C# 7 there will be a wider acceptability of tupples because the declaration n usage is now more readable and elegant
31st Dec 2016, 12:08 AM
Omotunde Adetula
Omotunde Adetula - avatar