3 ms·
Python used to be simple. V3 cleaned it even more (adding incompatibilities and the whole drama). The recent additions are not much but there are many that you
by makapuf 5y ago
Python used to be simple. V3 cleaned it even more (adding incompatibilities and the whole drama). The recent additions are not much but there are many that you need to know to be able to understand code using it: walrus operator, type annotations, pattern matching, the whole possibilities of pasding parameters (non optional named parameters), ... each of those in isolation are not so complex, useful and welcomed by the community. But simple... less and less so.
- mhd 5y agoI'm still not sure that list comprehensions in Python 2 were the right move...
- makapuf 5y agothis one I love, and is very useful and clear, but I'm sure each one of the c++ features are dear to someone...
- kortex 5y agoNah, list, and even moreso, dict comprehensions, are one of my favorite python features. Any time you can avoid state-in-flight (e.g. mutating stuff inside a for loop) is a win in my book. Maybe if you aren't used to the syntax, there is some mental overhead, but that goes away after (at most) a few months of writing python.
- mhd 5y agoBack in the days, I was seeing Python basically as the anti-Perl, where "There's More Than One Way of Doing Things" is the core mantra. Sure, a for loop is a blunt tool, but there's something to be said about not having too many different ways to approach things. Python as the new Basic. Back then, that was a unique selling point of the language for me. These days, those are quite diffrent.