← concepts · the commons
product shape
also known as product shapes
4 moment(s) that assert this concept — showing 1–4 of 4
single sourceRests on a single channel — treat as a lead, verify independently
↣ how this spread over time →ACM SIGPLAN · youtube · en
1Product and concatenation shapes are modeled using records and variants, respectively, to support complex array structures.
“there's product shapes and concatenation shapes and these are respectively indexed by records and variants and they sort of denoted with these funny braces that sort of are similar to the corresponding standard notation for records and variants”
spoken · 347s · 2025-07-15
ACM SIGPLAN · youtube · en
2Product shapes can be indexed by records of a corresponding record type and can have additional fields.
“have a product shape and this can be indexed by records of a corresponding uh record type and here we'll say that this record can have have more fields”
spoken · 365s · 2025-07-15
ACM SIGPLAN · youtube · en
3An array with no dimensions is a product with no dimensions and has exactly one element, indexable with an empty record.
“if the array has no dimensions it's a product with no dimensions then it's in particular it has exactly one element because you can index into it with an empty record”
spoken · 416s · 2025-07-15
ACM SIGPLAN · youtube · en
4Product and concatenation shapes behave like records, allowing dimension and component projection.
“product and concatenation shapes uh behave like records like up to typing like you specify like what each dimension is, what each component is, and they essentially just behave like records. You can also project the individual components and dimensions”
spoken · 536s · 2025-07-15