Re: [whatwg/url] Specify that domains are ASCII strings. (#409)

1) An [IP address] (https://url.spec.whatwg.org/#concept-ipv4) is not a string. 2) When we say that a Host is a domain or an [opaque host] (https://url.spec.whatwg.org/#opaque-host), which is an ASCII string, I think it's clear that that should be implemented as a tagged union and not a pure sum type that could only use the types of its contents to distinguish.

-- 
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/pull/409#issuecomment-411090827

Received on Tuesday, 7 August 2018 15:09:27 UTC