4 ms·
Records of the same structure but different names are equivalent. In fact tuples are just sugar over records with numeric fields starting from 1. Note that this
by bjz_ 7y ago
Records of the same structure but different names are equivalent. In fact tuples are just sugar over records with numeric fields starting from 1. Note that this is not the same as in OCaml, afaik.
- jolux 7y agoIt depends. OCaml explicitly has polymorphic records as well.