Re: [whatwg/url] Proposal of .toString({ concise: true }) for nicer output with empty values (#469)

@annevk Good point.  I'll admit I was uncertain whether to suggest keeping the conversations separate was a good idea - and now I share your concern, especially now that I'm looking into [rust-url](https://github.com/servo/rust-url/), where the implementation is (sensibly, as you mention) shared.

Omitting the name to represent null values is an interesting idea, but it means that the recipient / reader of the serialized query-string cannot know for certain which names the writer intended to be null.  If both reader and writer agree on the exact set of names -- and never update them -- then nulls can be implied from their absence, but if the writer introduces a new name, then readers who are unaware of the name would not pick up on that.

If and when I have a proposed Rust implementation I'll attach that here too.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/469#issuecomment-627272278

Received on Tuesday, 12 May 2020 11:05:26 UTC