271
submitted 3 weeks ago by neme@lemm.ee to c/python@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] bjornsno@lemm.ee 65 points 3 weeks ago

I code both typescript and python professionally, and python is almost as much of a mess, just a different kind of mess. The package manager ecosystem is all over the place, nobody is agreeing on a build system, and the type system is still unable to represent fairly simple concepts when it comes to function typing. Also tons of libraries just ignore types altogether. I love it, but as a competitor to JavaScript in the messiness department it's not a good horse.

[-] jjjalljs@ttrpg.network 2 points 3 weeks ago

the type system is still unable to represent fairly simple concepts when it comes to function typing

what do you mean by this?

[-] bjornsno@lemm.ee 1 points 3 weeks ago

My biggest pet peeve is the complete inability to annotate a set of known exceptions that a function raises in a machine readable way. The discussion about it is quite heated.

[-] FizzyOrange@programming.dev 4 points 3 weeks ago

In fairness that approach hasn't really worked in other languages. It was so unpopular in C++ that they actually removed the feature, which is almost unheard of. Java supports it too but it's pretty rarely used in my experience. The only place I've seen it used is in Android. It's unpopular enough there that Kotlin doesn't support it.

load more comments (2 replies)
load more comments (2 replies)
load more comments (19 replies)
this post was submitted on 02 Nov 2024
271 points (98.2% liked)

Python

6420 readers
36 users here now

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

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

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

founded 1 year ago
MODERATORS