Franck 2007-11-11 22:44:12
So do agents with list map/fold/app etc. Aren’t sather
iterators made redundant by higher order functions?
Dr chaos 2007-11-16 15:10:11
I don’t think they are completely
No, not really. The semantics are somehwat different: iters really
are about better sequential iteration. Applying a function to results
of another function is usually parallel operation: e.g. find all
elements satisfying P1, then apply function F. (this is an example of
what I assume you mean).
In an iter, its arguments can be “hot”, meaning recomputed for
each new iteration. This precludes a simple parallel.
They are both useful and should coexist, but I think iters satisfy
a more frequent need in traditional imperative programming.
Gabriel moreau 2007-11-24 10:44:27
I am 100% agree with you. Sather iter are the best way for loop. I don’t
understand why no other language have done the same. Very easy to code
and use, no bug and you are free to do what you want.
Gabriel Moreau – IR CNRS tel:+33.476.827.011
Laboratoire 3S, Sols Solides Structures fax:+33.476.827.043
BP53, 38041 Grenoble Cedex, France http://www.3s.hmg.inpg.fr