by xcmark · 2y ago · 0 comments
But of course, I have to learn all of it to understand other people's code. Python's syntax has really gotten worse. The match statement is ugly in comparison to functional languages, I'm not sure about f-strings, the with-statement extension adds new overhead to the reader.
Python is really like C++ now, except 50 times slower (yes, I know about the slow std::unordered_map special case that is due to its rigid specification).
Yet there is still a common belief among programmers that “Python is a simple language”. I don’t know how that persists.
Perhaps what people really mean is just that it has “friendly” syntax (no braces, sigils etc) - and they aren’t considering semantics?
Agree that match is shite, Python has a Guido-induced antagonism towards functional programming, starting with the opposition to multi-line lambdas, then with the attempted assassination of map() and filter() in Python 3, the removal of argument pattern matching, and now with statement-based match (in 2024!).
I don’t think there’s anything else there that I want to use. But, I recognise that as someone who only uses Python for small dynamically-typed programs, I’m not the target audience for the language any more.