|
|
|
|
|
by bmitc
1609 days ago
|
|
I have never seen this referred to anything other than things like tail-call recursion, tail-call optimization, etc. Languages like Python make implementing simple loops like: def loop():
<whatever>
loop()
impossible.Python will reach a maximum recursion depth and error. Why is this important? Like I said, it makes looping very easy. For example, actors can almost be trivially implementing in languages with tail-call recursion. It’s not in Python because like most things in Python, van Rossum doesn’t like it because <reasons>. https://stackoverflow.com/questions/13591970/does-python-opt... There’s little point in having full traces of the data doing in and out of the tail-call loop is immutable, so you only really care about the current call of the function. |
|
Its not something I've every heard of before, I guess its peculiar to Python though but dont most languages have some eccentricity?