this post was submitted on 23 Jun 2024
732 points (96.4% liked)

Programmer Humor

19171 readers
1479 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 2 months ago (1 children)

Yeah, ideally TypeScript would be natively supported. Or maybe just Python, which is sort-of strictly typed, and definitely won't do "wat". Alas, it's not the world we live in, and browsers take JavaScript.

[โ€“] [email protected] 3 points 2 months ago

Python supports type hints, but you need to use a type checker like Pyre or Pyright to actually check them. Python itself doesn't do anything with the type hints.