Hacker News new | past | comments | ask | show | jobs | submit login

You can't detect all possible cycles statically, but you can definitely detect them when they happen at runtime. When calculating a value, track its dynamic dependencies. If it ends up depending on itself, you have a cycle.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: