Friday May 6th

Thursday May 5th

Tail recursion in C#

This article briefly explains what tail recursion is, and explores various ways to implement it in C#.

8 comments

The F# compiler does in fact support tail recursion correct? Do you think it's a better approach to mix F# and C# or to implement one of the methods you outlined in C#?

I don't know much about F#, but according to this article by Bart de Smet, the F# compiler transforms recursive tail calls to loops. For non-recursive tail calls, it uses the tail IL instruction
http://bartdesmet.net/blogs/bart/archive/2009/11/08/jumping-the-trampoline-in-c-stack-friendly-recursion.aspx

I don't know much about F#, but according to this article by Bart de Smet, the F# compiler transforms recursive tail calls to loops. For non-recursive tail calls, it uses the tail IL instruction
http://bartdesmet.net/blogs/bart/archive/2009/11/08/jumping-the-trampoline-in-c-stack-friendly-recursion.aspx

I don't know much about F#, but according to this article by Bart de Smet, the F# compiler transforms recursive tail calls to loops. For non-recursive tail calls, it uses the tail IL instruction
http://bartdesmet.net/blogs/bart/archive/2009/11/08/jumping-the-trampoline-in-c-stack-friendly-recursion.aspx

I don't know much about F#, but according to this article by Bart de Smet, the F# compiler transforms recursive tail calls to loops. For non-recursive tail calls, it uses the tail IL instruction
http://bartdesmet.net/blogs/bart/archive/2009/11/08/jumping-the-trampoline-in-c-stack-friendly-recursion.aspx

Sorry about the duplicate reply... I'm having connection problems, and it didn't seem to work the first time

Good article. thanks.

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network