Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
Otoh, the generation counter is only necessary for a cache inside ShadowedMapping. I think it'd work pretty well without that cache too, so imo it's not worth the overhead in all mappings. Is there something else to motivate having built-in generation counters?
My gut feeling is that this is going overboard. I see limited use. You could, use it is a debugging aid, but even then the value is questionable.
I'd prefer not to extend the language with this overhead.