From 682ee2080a0e422ae4cfd36a3f9018d344cdc150 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Wed, 14 Oct 2020 23:56:05 -0400 Subject: [PATCH] Fixed sentence in tco post. --- content/blog/tcopython.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/blog/tcopython.md b/content/blog/tcopython.md index fcf4b07..3fe760e 100644 --- a/content/blog/tcopython.md +++ b/content/blog/tcopython.md @@ -30,7 +30,7 @@ RecursionError: maximum recursion depth exceeded in comparison ## Implementation -To get around this in Python, we need some sort of [trampoline](https://en.wikipedia.org/wiki/Tail_call#Through_trampolining), or way to exit part the stack and call the recursive function again. This technique is called Tail Call Optimizatoin, and we can do this in Python using exceptions. This code is heavily inspired by Crutcher Dunnavant's [code snippet](https://code.activestate.com/recipes/474088-tail-call-optimization-decorator/) from 2006. +To get around this in Python, we need some sort of [trampoline](https://en.wikipedia.org/wiki/Tail_call#Through_trampolining), or way to exit part the stack and call the recursive function again. This technique is often used in Tail Call Optimization, and we can do this in Python using exceptions. This code is heavily inspired by Crutcher Dunnavant's [code snippet](https://code.activestate.com/recipes/474088-tail-call-optimization-decorator/) from 2006. ```python """ @@ -121,4 +121,4 @@ You can install the package via pypi: pip install tail-recurse ``` -It is also available on [Github](https://github.com/Brandon-Rozek/tail-recurse/). \ No newline at end of file +It is also available on [Github](https://github.com/Brandon-Rozek/tail-recurse/).