Saturday, March 10, 2007

Tuples

Gilad Bracha (via Lambda):

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.

Comments RSS · Twitter

Leave a Comment