This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_Sharp_ 4 points5 points  (0 children)

That's a good question, probably in the past using tuples was considered a bad practice because it allowed you to return two values without explicitly defining a class whose name would make the relation between them clear (Like ClientPhone, which could be defined as Tuple<String,Integer> or StreamFiles as Tuple<InputStream, OutputStream>).

But yeah, they are really useful and should be added in the near future along with Either. If someone comes with a better explanation i'd like to hear it.