Check out Dart's iterators

Domenic Denicola domenic at domenicdenicola.com
Sun Feb 10 00:26:20 PST 2013


> -----Original Message-----
> From: Brendan Eich [mailto:brendan at mozilla.com]
> Sent: Sunday, February 10, 2013 03:20

> Changing from hasMore/getNext to current/moveNext does not eliminate two methods that can get out of sync. You can imagine one is a property, not a method, but the general case is a getter or C#-style Current method.

Ah, the fact that it could be a getter does reduce it to the original two-out-of-sync-methods case, right. Thanks!


More information about the es-discuss mailing list