4 ms·
I have a bug/hate relationship with the visitor pattern: how do I implement it without causing a stack overflow in languages without tail recursion optimization
by estebarb 2y ago
I have a bug/hate relationship with the visitor pattern: how do I implement it without causing a stack overflow in languages without tail recursion optimization?
It always ends up in a loop with a lot of ifs inside.