
March 24, 2009
12:24 a.m.
We have a decision to make. It appears we can have *one* of the following, but not both: (1) In non-refcounting implementations, subiterators are finalized promptly when the delegating generator is explicitly closed. (2) Subiterators are not prematurely finalized when other references to them exist. Since in the majority of intended use cases the subiterator won't be shared, (1) seems like the more important guarantee to uphold. Does anyone disagree with that? Guido, what do you think? -- Greg