12
Protocols in Python (til.simonwillison.net)
you are viewing a single comment's thread
view the rest of the comments
[-] sirdorius@programming.dev 2 points 1 year ago* (last edited 1 year ago)

Python provides flexibility. You want to use it for fast experiments in a jupiter notebook? Skip types. You're doing a months long backend project? Add types, either through implicit types (protocols) or explicit types.

I don't see how flexibility is a bad thing. Don't want it? Don't use it. You can still use it in the simple way, like 30 years ago, it's just providing more options to be used in different contexts.

Considering Python is almost as old as C++, I would say that Python has done a much better job at incorporating new features in a sound architectural way compared to C++, while keeping new features at the same complexity level as the older ones. Or compared to javascript, which let a spinoff language emerge (something that Van Rossum very much wanted to avoid with mypy) and drive it towards adopting some features that were being asked for years (ie classes in ES6)

this post was submitted on 26 Jul 2023
12 points (100.0% liked)

Python

6224 readers
9 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

October 2023

November 2023

PastJuly 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS