Re: [w3c/manifest] Web Manifest Overrides (Issue #1045)

> The JSON spec explicitly defines its objects as having unordered members

This is a debate we've had many times on this spec :) I've carefully read the two (!) JSON specs and I think both of them are sufficiently vague as to whether we can actually rely on the order that objects define their members. Suffice to say, some JSON parsers preserve the order, many do not. I would very strongly prefer that when we write JSON-based formats like manifest, we do not rely on the order of dictionary keys (Marcos' final proposal here does not).

Further, I would prefer that we treat objects in precisely one of two ways:
- As a "struct" (with pre-defined keys for specific members), or
- As an "unordered map" (with arbitrary string keys, where the order doesn't matter and the values all have the same type).

All of the objects in this proposal are "struct" type, so that's good with me.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/1045#issuecomment-1192076365
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/manifest/issues/1045/1192076365@github.com>

Received on Friday, 22 July 2022 01:06:19 UTC