Anyone ever considered named tuples?

Paulo Levi i30817 at
Sat Mar 21 17:07:58 PDT 2009

Out of the blue, a few days ago, i wondered if a tuple construct that had
ie: (String directory, String file) for instance, would make any sense?
I know that spaghetti code should be factored to map to simple functions
with simple return arguments, but i saw sooooo much code that had simple
container semantics.
A tuple object written as a compiler code transformation like autoboxing
would make
a lot of sense if it allowed names to be defined at use site.
I'm sure you know that this can be simulated by some creative use of
generics and static import,
but the names (one ... first) are pretty bad.

Just throwing a idea, don't bite my head off.

More information about the coin-dev mailing list