Re:What's New in Python 3.11?
by xdfgh1112 on Monday June 27, 2022 @04:34AM
(#31891968)
I started learning python last year. There really isn't that much to the language even with the new features. It's nowhere near Rust or C++ for example.
[ Parent
| on HN ]
Re:What's New in Python 3.11?
by wheelerof4te on Monday June 27, 2022 @02:53PM
(#31899001)
Really? Try using the new "match/case" keywords. Understand all of the most used cases.
Try using a walrus operator in a multi-line if/elif statement or a complex comprehension.
Try to understand the subtleties of the new dictionary merge operator.
And the best one, try learning the typing annotations.
All this on top of already complex OOP class system.
Good luck.
I use all of those! I used to program Perl and Rust though, so maybe my preference for complexity in languages is higher than yours.
I understand your argument though. If you picked Python because of its simplicity, and now it has a ton of new syntax and features, I can see how that would be difficult to tolerate.
match/case is similar to other languages. Walrus is just assignment-as-an-expression. The subtleties of dict mergining don't matter 99% of the time. Type annotations are great and not hard to learn.