Re:Clay – A language designed for generic programming
by codebaobab on Sunday July 28, 2013 @07:09PM
(#6118485)
Maybe modern languages don't have tuples because modern programming language designers don't have any|much|enough experience with tuples? If I wanted to play with tuples, what language(s) would I have to use?
[ Parent
| on HN ]
Re:Clay – A language designed for generic programming
by tomp on Monday July 29, 2013 @03:21AM
(#6119762)
Python, or any of the functional programming languages: OCaml, Haskell, probably Scala. Tuples are really just syntactic shortcut for immutable lists, so Clojure would be appropriate as well, even though it makes no distinction between a tuple and a list (e.g. "rest" parameters to a variadic function are a list).