Re:Coconut: Simple, elegant, Pythonic functional programming
by gilch on Wednesday November 10, 2021 @08:12PM
(#29183261)
That's really not true either. The lambda parameters are locals [a]. A let-binding is just a lambda that you call immediately. You can use defaults so the value doesn't have to appear as an argument [b]. Also, Python has assignment expressions now [c], and comprehensions are expressions which can have their own locals [d].
That's four different ways to get locals with no statements.
[ Parent
| on HN ]
There are no comments on this comment yet.