3 ms·
I wouldn't say Python is great either, but some of his criticisms are pretty poor. Having multiple ways to do something (interpolating strings) isn't a bad thi
by collyw 6y ago
I wouldn't say Python is great either, but some of his criticisms are pretty poor.
Having multiple ways to do something (interpolating strings) isn't a bad thing. Usually the newish f strings are the easiest to use, but explicitly assigning variables via the format() function makes things more readable.Perl always had more than one way to do things.
Yes, nested list comprehensions are not readable, then don't use them. I have that as a personal rule.
I agree with him on Python ternary operator.
Most languages have "condition", "success", "failure" in that order. This has "success", "condition", "failure" which feels wrong and always takes me longer to parse in my head than it should.
- fiedzia 6y ago> Having multiple ways to do something (interpolating strings) isn't a bad thing. It is when the motto of the language says "There should be one-- and preferably only one --obvious way to do it." and that is applied whenever possible.