Re: [url] Parsing an empty host (#79)

Yes, but more generally it’s good for the thing that maintain an invariant (such as "this string is non-empty") to be close to the things that rely on that invariant.

The URL parser algorithm is full of things like that: one bit of pseudo-code relies on another bit of pseudo-code that doesn’t seem directly related to have had some non-obvious side effect. It’s not *wrong*, but it makes it harder for humans to read the algorithm without making mistakes.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/79#issuecomment-173740653

Received on Thursday, 21 January 2016 22:49:36 UTC