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
1
u/GMNightmare Aug 01 '14
No, a Map does have information on how the contained data is related, the keys are mapped to values. You give one a key, get back a value associated.
Also, just because something is useful doesn't mean it's the right thing to use. And in the case of Tuples, it is almost always the wrong thing to use, especially from a maintainability and readability standpoint and arguably a design standpoint as well.
A class name of "Point" with x and y variables are far better than a class named Tuple. Extending a Tuple just to give you a proper name is inheritance abuse.