
Functional C# with Simon Painter
.NET Rocks!
00:00
Is There a Safe Recursion in C Sharp?
The IL does support a safe recursion, but that is not exposed to us in C sharp. And I don't think there are any intentions going forward of fixing that because it's a backward compatibility thing. But if you have a look at the IL for F sharp does we say for a curation users a go to command, which is basically a hidden while loop. So fundamentally, it's the only answer to the problem. You need to know how many times to do something and what the cost of continuing to iterate is.
Play episode from 22:31
Transcript


