* Jürg Billeter wrote, On 17/12/08 13:04:
Thinking back to my dylan days (anyone ever use dylan?) it was common to have modifiable iterators.On Tue, 2008-12-16 at 17:58 +0300, Кутейников Дмитрий wrote: I'm suggesting that foreach could also be used on objects that support an iterable interface, so that a function could return an iterator that is used by foreach and destroyed after the for-each. Thus the syntactic sugar could remain but also support modifying the collection if the collection could produce a safe iterator. Sam |