4 ms·
Tail recursion optimisation gets rid of all tail calls in functions, not just those that might lead to loops - you cannot in general detect those calls that mig
by sbmassey 9y ago
Tail recursion optimisation gets rid of all tail calls in functions, not just those that might lead to loops - you cannot in general detect those calls that might be loops. This can put a lot of holes in your stack trace.
- willtim 9y agoIt's an optimisation. It can be turned off when debugging with stack traces. If you need stack traces in production code, you have too many partial functions.