by doliveira · 5y ago · 0 comments
Another non-functional application of tail call elimination is finite state machines. Writing them as functions calling the next state in tail call position is very elegant, legible and efficient.
Were it not for Firefox and Edge teams who torpedoed that feature, it would be a part of the major language of today.
Maybe it still will be.
I use Python plenty, just not in large enough doses that I have to actually make peace with it.