yield and new : SpiderMonkey and the draft Spec
Dmitry A. Soshnikov
dmitry.soshnikov at gmail.com
Mon Mar 14 15:30:34 PDT 2011
On 15.03.2011 20:21, David Herman wrote:
>> P.S.:
>>
>> A small change, e.g. can be to make next as a getter since it doesn't accept arguments.
>>
>> g.next; // 1
>> g.next; // 2
>>
>> But, it's a cosmetic and actually not so needed change.
> -1
>
> The purpose of the next interface is to change the state of the iterator. A getter interface obscures the statefulness.
>
Yeah, true.
Dmitry.
More information about the es-discuss
mailing list