2 ms·
One problem I have with tail calls in OO languages is that they're fragile. Simple things, like adding a print statement for debugging, can break your code. I
by kenjackson 15y ago
One problem I have with tail calls in OO languages is that they're fragile. Simple things, like adding a print statement for debugging, can break your code. I think these things are more apparent in functional languages.
With that said, I'd love to see it implemented in OO languages, but I'd tell those to be wary where correctness relies upon it (and as blasphemous as this may sound -- use iteration in places where it doesn't destroy the code).