3 ms·
Functions (and I assume lambdas) could destructure tuples in Python 2.x. I started my first serious Python project in 2.something before discovering it was near
by macintux 6y ago
Functions (and I assume lambdas) could destructure tuples in Python 2.x. I started my first serious Python project in 2.something before discovering it was nearly eol, and learning that all of my tuple management was broken under version 3 was quite demoralizing.
I find the mutability of values and object orientation of 3rd party libraries to be among the most alienating aspects of Python, but overall it’s too useful for me to ignore, so I live with it.
I just don’t find layering on functional capabilities to an OO language to be nearly as useful as a true FP solution. As you said, too much cognitive overhead.
- BalinKing 6y agoHuh, apparently[0] they removed lambdas' ability to do that in Python 3! [0] https://stackoverflow.com/a/11328422/2391244 https://stackoverflow.com/a/11328422/2391244