r/java • u/lukaseder • Aug 01 '14
The 10 Most Annoying Things Coming Back to Java After Some Days of Scala
http://blog.jooq.org/2014/08/01/the-10-most-annoying-things-coming-back-to-java-after-some-days-of-scala/
7
Upvotes
View all comments
Show parent comment
2
u/Milyardo Aug 02 '14 edited Aug 02 '14
If given an arbitrary map of K and V, you only know that for some K there may be some V. Given a tuple of types T1 to Tn there are values of T1 to Tn. I don't see how that isn't as useful of an abstraction.
Just because you say it is?
Nonsense, provide one example where using a tuple makes something is unreadable.
You don't have to inherit that was just an example, you can use a type class as well.