We have Tuple2, Tuple3, Tuple4 in our utils package, rather handy. Wish
this was avaialable directly in the language, probably as form of
generic/typed "array", maybe something like:
public [Integer,String] doSomething() {
return new [Integer,String] {5, "Hello"};
}
...
Integer foo = doSomething()[0];
This reuses the style of an array, but specifying a type signature for each
element. Anyone know if this would be a viable suggestion?
...and then Buffy staked Edward. The End.
On Mon, Feb 9, 2009 at 2:12 AM, [email protected] <
[email protected]> wrote:
>
> This is the first time I've felt the need to change the language. I
> guess everybody else here wants other changes. I've got this class in
> every project I've worked on for the last 2 years. Anybody has a
> better one?
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---