23 Mar
2009
23 Mar
'09
11:24 p.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