3 ms·
Recall that Python has assignment expressions `:=` now: https://www.python.org/dev/peps/pep-0572/ https://www.python.org/dev/peps/pep-0572/ Even before that, I
by gilch 7y ago
Recall that Python has assignment expressions `:=` now: https://www.python.org/dev/peps/pep-0572/ https://www.python.org/dev/peps/pep-0572/
Even before that, I had a "let" in Drython: https://github.com/gilch/drython/blob/master/drython/statement.py#L810 https://github.com/gilch/drython/blob/master/drython/stateme...
In Haskell let and lambda have a subtle distinction due to the type system, but in Lisp and dynamically typed languages like Python, "let" can simply be lambda definition that is called immediately.