Making sequences distinguishable from dictionaries (and interfaces and callbacks)

Now that sequences are defined as "something iterable", it seems like we 
can reliably distinguish them from dictionaries: if an object is 
iterable, treat as a sequence, otherwise treat as a dictionary.

I'm proposing making that change in https://github.com/heycam/webidl/pull/19

That will allow APIs to declare an argument as a union of a sequence 
type and a dictionary type, which seems to be something people commonly 
want to do.

-Boris

Received on Wednesday, 24 September 2014 02:02:22 UTC