Java was actually designed to have tuples from the start, but they never quite got in. At one point, I tried to add a tuple-like construct as part of JSR-65. We wanted to extend array initializers to full blown expressions. Eventually, that effort got quashed; I didn’t really resist, since the extension was painful, as such things always are in Java. We should have just done straight tuples as a separate construct - but at the time, that was frowned upon too.
Not surprisingly, Gilad thinks that tuples are great.
Recent comments
16 weeks 4 days ago
16 weeks 4 days ago
16 weeks 4 days ago
38 weeks 5 days ago
43 weeks 14 hours ago
44 weeks 4 days ago
44 weeks 4 days ago
47 weeks 2 days ago
52 weeks 3 min ago
52 weeks 1 hour ago