Re:Python’s lambda is broken
by jrockway on Thursday April 09, 2009 @01:42PM
(#554765)
The deeper issue here is "mutation is hard to reason about". Well, yeah.
[ Parent
| on HN ]
Well, I would disagree - the problem is that there is no apparent mutation in the given example. There is hidden mutation, in that the list comprehension mutates its variable. This is probably done for efficiency, but I would claim it's a bad design decision.