shueja / Monologue

21 stars 7 forks source link

Disabling infinite recursion #24

Open DanPeled opened 2 months ago

DanPeled commented 2 months ago

A bug i stumbled upon was that monolouge didnt figure out was that a variable of mine was a singleton which caused an infinite recursion on default and crashed the whole code without me being able to know that

My suggestion for the fix: adding a recursion counter for each var and if it exceeds some amount it will either raise and error that will actually tell u whats wrong / a warning