Closed fomkin closed 9 years ago
Учитывая, что циклов в графе у нас быть не может, строго говоря, можно попробовать Reference Counting, как в COM, или там как в Python старом, или как в умных указателях в C++
@Lovesan Speak english please. This is a public repo. Ok. How are you going to implement reference counting in Scala?
Solution
val g = reaper mark {
a flatMap { a =>
b flatMap { b =>
c flatMap { c =>
a + b + c
}
}
}
}
On every run kill dependent binding which is not marked by reaper.
Epic fail. What should I do?