Xavid (kihou) wrote,
Xavid
kihou

Tail recursion

I got a cool idea for how to hack tail recursion in Python better. As often happens, someone else got my idea first. Mainly posting it here so that next time I paint myself into a corner by forgetting that Python doesn't have native tail-recursion support, I'll be able to easily extract myself.
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments