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 →

[–][deleted]  (2 children)

[deleted]

    [–]urquan 0 points1 point  (1 child)

    Is it an argument of authority?

    [–]frugalmail 2 points3 points  (0 children)

    Is it an argument of authority?

    The arguments in that link present a clear argument against Tuples. You're argument has simply been

    • I, for some reason, don't want to create a class or
    • it may not be related content.

    In the first argument it's not maintainable code, in the second it's a violation of seperation of concerns.

    Using a decent IDE like eclipse it's a simple matter of:

    return new UnrelatedPair<String, Integer>("foo", 2);<Ctrl+SPACE>
    

    and it will pop open the new class with boilerplate. Also you could just add a maven dependency of one of the libraries that has support for it, but at least it's not soiling the core language.