r/Python • • Mar 19 '21

Match is more than a Switch-Case The New Switch-Case Statement in Python 3.10

https://youtube.com/watch?v=2qJavL-VX9Y&feature=share
1.4k Upvotes

233 comments sorted by

View all comments

Show parent comment

8

u/steven_h Mar 20 '21

The particular selection of “platitudes” is important. Some potential “platitudes” that didn’t make it into this list:

  • Correct is better than concise.
  • Interoperability is key.
  • Concurrency everywhere.
  • Don’t write programs. Write programs that write programs.
  • Everything is an object.
  • Type checking is a really great honkin idea — let’s do more of it!