News for hackers. Stuff that matters.
Re:Letter to a Young Haskell Enthusiast by dllthomas on Friday August 01, 2014 @05:46PM (#8123019)
It's precisely a tuple, obviously. Are you sure you said "list", not "heterogeneous collection"?

If you know what is where in the list, then you semantically have a tuple.

If you don't know what is where in the list, then you need some way of telling things apart. At which point an ADT is frequently the right solution, isn't any sort of advanced technique, and requires very little in the way of boilerplate.

There are no comments on this comment yet.