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 23 hours ago
16 weeks 1 day ago
16 weeks 1 day ago
16 weeks 2 days ago
16 weeks 5 days ago
16 weeks 5 days ago
16 weeks 6 days ago
17 weeks 10 min ago
17 weeks 1 hour ago
17 weeks 1 hour ago