Re: [heycam/webidl] Are string types and sequence types distinguishable? (#266)

1. String types and sequences are distinguishble.
2. They are very explicitly and purposefully distinguishable, and there are APIs that use `(DOMString or sequence<DOMString>)`.  We purposefully allowed that.
3. ES String objects are in fact valid sequences.  They're also valid dictionaries (something else that is distinguishable from strings), valid callback interfaces, etc.  The fact is, the current design of IDL was more or less predicated on "people don't use explicit String objects and expect any good to come of it".

I don't think there's anything to resolve here; the spec as written is written as intended and reflects reality.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/266#issuecomment-272755277

Received on Monday, 16 January 2017 01:37:15 UTC