
Unifying Tuples and Records
Tuples and records have become quite popular in modern languages, with first-class syntax for both. But why are they kept as separate features? Can they be unified as just one template for product types? What is a Tuple? In mathematics, a tuple is a sequence of objects. This means there is an order to the objects and, unlike sets, objects can be repeated at different positions. The term comes from a generalisation of how we refer to groups of items. ...




