What are the practical examples of reference cycles?
问题 Garbage collectors have functionality to deal with reference cycles. As far, as I understand, this is necessary for all languages with GC. But I do not understand, why there can not be created language avoiding reference cycles, using some weak references, if necessary. What are the real life examples of unavoidable reference cycles, arising in programming? 回答1: You can not create a programming language avoiding reference cycles, as it would be the responsibility of the application programmer