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
3 hours 7 min ago
17 hours 10 min ago
23 hours 7 min ago
5 days 6 hours ago
5 days 16 hours ago
5 days 20 hours ago
6 days 2 hours ago
1 week 3 days ago
1 week 3 days ago
1 week 4 days ago