On Thu, 06 Nov 2008 10:30:52 -0800, not_a_commie <no********@gmail.com>
wrote:
A tail call is a way of removing the current method from the stack
before recursing. See
http://blogs.msdn.com/shrib/archive/...25/360370.aspx
. I would love to see it in C# 4.0 and wouldn't mind if we needed a
special keyword to make it happen.
I doubt you'd see that. Tail recursion is so trivially implemented as a
plain iterative loop, I can't imagine that such a feature would meet the
bar for inclusion in the language.
I see why MSIL might have "tail" for supporting functional languages, but
this doesn't seem like something that needs to be exposed in C#. Any code
that could take advantage of it really just should be written differently
anyway.
Pete