Closed domenic closed 2 years ago
@tabatkins was asking for a struct literal syntax on Matrix. We should probably pick one or the other?
I think this is useful even when you don't want a literal, e.g. the examples I linked where the structs are large and so you specifically want a column-based presentation.
This makes declaring struct instances (in the sense of https://infra.spec.whatwg.org/#structs) much easier.
Extracted from https://github.com/whatwg/html/pull/6315. See some example usages at https://whatpr.org/html/6315/history.html#snapshotting-source-snapshot-params and https://whatpr.org/html/6315/history.html#navigate steps 14.7 and 14.13.6.