Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				@iiii
 Actual functional languages do tail call optimization. Tail-recursive functions are compiled as loops there.
 
 In such functional languages, you are allowed to write a recursive solution as a tail-recursive function. You don't need to convert it to a loop by hand.
 And sometimes a recursive solution is easier to read and understand.
- 
				
				 hjk10155824y@iiii I'm very interested in how that works. Can you show me an example hjk10155824y@iiii I'm very interested in how that works. Can you show me an example
 with the classical filesystem traversal problem?
- 
				
				 hjk10155824y@iiii https://rosettacode.org/wiki/... hjk10155824y@iiii https://rosettacode.org/wiki/...
 Or pick any other language example with a recursive walk function actually visible.
- 
				
				 hjk10155824y@iiii thanks didn't know what you meant with fake stack but makes sense now. hjk10155824y@iiii thanks didn't know what you meant with fake stack but makes sense now.
 I was thinking along the same lines with building an itterable datastructure.
- 
				
				 bioDan55354y@iiii good luck trying to parse languages without using recursion. bioDan55354y@iiii good luck trying to parse languages without using recursion.
 
 Doable? Maybe.
 Maintainable? No way.




uSE AnY pRogrAmMinG L@ngu@g3 yOu liKe.
1nTervi3weRs Do N0t CarE aBouT tHe L@nGuAge.
Fuck you. Stop asking time complexity or space complexity of functional code. No one fucking knows.
rant