←back to thread

122 points phsilva | 2 comments | | HN request time: 0.417s | source
Show context
thunkingdeep ◴[] No.43110710[source]
This does NOT mean Python will get Tail Call Optimization, as Guido cannot be shown The Light, and has decided.
replies(4): >>43110815 #>>43110832 #>>43111490 #>>43112657 #
rpcope1 ◴[] No.43110815[source]
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
replies(4): >>43110836 #>>43110873 #>>43111245 #>>43111956 #
1. dragonwriter ◴[] No.43111245[source]
> we never get real useful quality of life improvements for basic functional programming like TCO or multi line lambdas

A lambda can be as big of an expression as you want, including spanning multiple lines; it can't (because it is an expression) include statements, which is only different than lambdas in most functional languages in that Python actually has statements.

replies(1): >>43111827 #
2. kqr ◴[] No.43111827[source]
> most functional languages

Most popular functional languages I can think of except maybe Haskell has statements!