Tuple2 - Why isn't it shipped with Jodd anymore?

35 views
Skip to first unread message

BloodySmartie

unread,
Mar 20, 2014, 10:57:58 AM3/20/14
to jod...@googlegroups.com
Hi Jodders,

i made use of Tuple2 in some of my projects. Now that i updated to the current version of Jodd, i saw that it's not providing this class anymore. Just for learning purposes for myself, i'd like to know which considerations lead to the removel of Tuple2.

Best wishes,

David

Jodders

unread,
Mar 20, 2014, 11:44:55 AM3/20/14
to jod...@googlegroups.com
Hey David,

we did some 'spring'-cleaning in (and before) v3.5 and removed all classes that might be... well, 'too much' :) Here is why Tuple2 was removed. Yes, it is a simple class with clear function. However, we believe that if you need class like Tuple2 - a composite of two elements - you should have your own class with much better names that displays what is that class or, what it actually holds. In other words, name 'Tuple' (and method names) talks more about class structure, not about it real type or purpose or content. Imagine you have Tuples of some eg movie data vs music data - these classes should not be the same type, although its structure may be the same. In short, it's too generic for our taste :)

Sorry for all inconveniences - and I hope this make sense :)

BloodySmartie

unread,
Apr 27, 2014, 7:19:06 AM4/27/14
to jod...@googlegroups.com
Oops, i thought that i answered you already. I just wanted to say thanks for the explanation  - there was no inconvenience at all :)

Jodders

unread,
Apr 28, 2014, 5:10:20 AM4/28/14
to jod...@googlegroups.com
:) No problem!
Enjoy!
Reply all
Reply to author
Forward
0 new messages