[dojo-contributors] [feedback wanted] Preferred Iteration forms

Alex Russell alex at dojotoolkit.org
Mon Apr 3 10:48:32 EDT 2006

On Monday 03 April 2006 12:55 am, Tom Trenka wrote:
> > Are there any technical/efficiency reasons against using functional
> > style iteration?
> >
> > Tom, I get the feeling you are trying to avoid 'scope creep'! You
> > have unfortunately chosen a fundamental topic to work on,
> > implementation compromises are difficult, opinions are strong, and
> > everybody has an opinion! I presumed you were implementing a
> > generic iterator, yet you talk about a specific need. Tom, can you
> > give us a better idea of the scope you want to keep within?
> Technical or efficiency reasons?  No, not at all.  But the
> Collections code is modeled on imperative-styles based on languages
> that do not have the strength or the flexibility of JS/LISP/Scheme et
> al, and I'm saying that I'm looking to keep it that way.
> Bill, functional iterators are just fine, but my fear here is that no
> one (outside of a native JS/LISP kind of implementor) will understand
> how to use them quickly and well;

C'mon. If that's not bullshit I don't know what is. The *language 
itself* is about to have functional-style iteration. Given that it's 
therefore idiomatic by definition, what's the cost to adding them to 
the collections interface?


Alex Russell
alex at jot.com
alex at dojotoolkit.org BE03 E88D EABB 2116 CC49 8259 CF78 E242 59C3 9723
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20060403/682f1f07/attachment.sig 

More information about the dojo-contributors mailing list