News for hackers. Stuff that matters.
Re:Why Tail-Recursive Functions Are Loops by pdpi on Tuesday August 12, 2025 @08:43AM (#44875517)
> I ended up trying to explain that tail-recursivity doesn't explode in memory for the rest of the call (and failed)

I count that as a successful interview – They sent an interviewer who doesn't understand how tail recursion enables tail call elimination, and is either unwilling or unable to listen when is is explained to them. Sounds like the company would be a bad fit for somebody whose go-to approach is to implement the solution that way.

Re:Why Tail-Recursive Functions Are Loops by hinkley on Tuesday August 12, 2025 @02:05PM (#44879807)
I've always struggled with not seeing this as 'sour grapes' on my part when I think like this. No matter how many friends and peers tell me I dodged a bullet. Even with my experiences with ignoring red flags. Rejection still sucks.
Re:Why Tail-Recursive Functions Are Loops by barmic12 on Wednesday August 13, 2025 @09:42AM (#44888344)
This is not a reject, is a not match. Write code like you want to read and if it’s not OK for a company it’s just not the good company (like if you are scala programmer and they want only ASM coders). Be proud of your code.