Re: How to correctly spec sequences requiring an iterable

On Nov 15, 2013, at 10:12 AM, Brendan Eich wrote:

> Jason should weigh in, but I favor for-of working on strings. They are array-like albeit frozen.

for-of requires an Iterable, not an array-like and frozen or not really isn't relevant.

But, for consistency, strings really need to work like the equivalent String wrapper for purposed of property access, so they need to work that way in for-of and all other Iterable contexts. 

> 
> On null or undefined, I see no need for the null disjunct. Precedent outside of null == undefined is lacking - particularly for a protocol (interface) test of this kind.

In general, null is useful, if you want to be sure you don't trigger a default parameter substitution.  Don't know whether that makes much of a difference in this case

Allen

Received on Friday, 15 November 2013 18:45:15 UTC