[Dojo-interest] [Head's Up] Collections are going to have
Tom Trenka
forum-dojo-interest at opensymphony.com
Fri Apr 14 09:41:58 MDT 2006
See my reply to Cameron; yes I agree with you that this is the last time to get it right, I've been through this topic with the committers at length (apparently iterators tend to spawn some sort of holy war) and the signature of this API isn't going to change.
At the same time, I would not consider this API to be broken if current() can return a null member; if a developer feels that they can (and will) use collections with null members (which will cause other standard JS issues btw) then they can use an alternate form of advancing. That's a not a broken API, that's a flexible one. You can use current() as the iteration test or you can use atEnd().
Seems simple enough.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=25941&messageID=51160#51160
More information about the Dojo-interest
mailing list