this post was submitted on 28 Nov 2024
466 points (88.6% liked)

Programmer Humor

32745 readers
465 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] HiddenLayer555@lemmy.ml 2 points 4 weeks ago* (last edited 4 weeks ago) (2 children)

A statically typed Python would be my dream programming language.

Can someone please make Typethon?

[–] ma1w4re@lemm.ee 4 points 4 weeks ago

Pyright language server makes Typethon out of your Python at the cost of massive bugs and performance. I used to like it, until I got really sick of waiting about 10 seconds for a suggestion to appear when typing open() and really fucking sick of the entire server crashing after I type pow()

[–] porous_grey_matter@lemmy.ml 3 points 4 weeks ago

Type checking for python is not bad these days, just run pyright (or mypy, I would like to prefer the non MS solution, but we have found pyright much more rigorous) on your code. Yes obviously you can still get out of it with an ignore statement, and that might occasionally be necessary for some libraries, but if you enforce no errors in pre-commit or CI then it's only a little worse than compile time.