any chance we will get tail calls in C# 4.0?

  • Thread starter Thread starter not_a_commie
  • Start date Start date
Peter said:
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 think more generally, switch/goto case (there's no requirement that the
tail call has to be recursion back to the same function, all participating
functions would have to be combined and turned into different case blocks in
a single master function).
 
Back
Top