Re: [webidl] Fix some problems with iterable declarations. (#72)

> +                <a class="dfnref" href="#dfn-value-iterator">value iterator</a>
> +                invokes its callback like Array.prototype.forEach does, and the forEach
> +                method for a <a class="dfnref" href="#dfn-pair-iterator">pair iterator</a>
> +                invokes its callback like Map.prototype.forEach does.
> +              </p>
> +              <p>
> +                Since <a class="dfnref" href="#dfn-value-iterator">value iterators</a>
> +                are currently allowed only on interfaces that
> +                <a class="dfnref" href="#dfn-support-indexed-properties">support indexed properties</a>,
> +                it makes sense to use an Array-like forEach method.
> +                There may be a need for <a class="dfnref" href="#dfn-value-iterator">value iterators</a>
> +                (a) on interfaces that do not 
> +                <a class="dfnref" href="#dfn-support-indexed-properties">support indexed properties</a>,
> +                or (b) with a forEach method that instead invokes its callback like
> +                Set.protoype.forEach (where the key is the same as the value).
> +                If this is you, please send a request to

Maybe "if you're creating an API that needs such a forEach method, please ...."

---
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/72/files#r44676793

Received on Thursday, 12 November 2015 16:17:11 UTC