2 ms·
C# has record (product) types now.
by fire_lake 2y ago
C# has record (product) types now.
- crabmusket 2y agoI'm not sure about the terminology here, but the & in TS is much more than a record. You can use it to smush types together e.g. {name: string} & {birthday: Date} becomes a single type with both properties.
- fire_lake 2y agoProduct types are tuple types. Record types are tuple types with names instead of indexes. The TypeScript “&” is another thing.