logoalt Hacker News

thunkingdeeplast Thursday at 3:19 AM4 repliesview on HN

This does NOT mean Python will get Tail Call Optimization, as Guido cannot be shown The Light, and has decided.


Replies

beagle3last Thursday at 5:38 AM

It is not an optimization ; it changes program semantics - converts programs that will run out of stack eventually regardless of the amount of available memory (and raise exceptions an the process, for example, which a program might rely on. Either way, semantics are changed)

It should only be called Tail Call Elimination.

show 2 replies
rpcope1last Thursday at 3:37 AM

That's probably one of the more frustrating things about Python. Each release it gets all sorts of questionable new syntax (including the very strange pattern matching "feature" that kind of sucks compared to something like Erlang or Scala), but we never get real useful quality of life improvements for basic functional programming like TCO or multi line lambdas

show 4 replies
ehsankialast Thursday at 3:39 AM

Guido is no longer BDFL though, it's the steering committee that decides.

show 2 replies
coldtealast Thursday at 9:09 AM

Hasn't Guido step down from BD anyway?