this post was submitted on 23 Jun 2024
733 points (96.5% liked)

Programmer Humor

19551 readers
815 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
[โ€“] CanadaPlus@lemmy.sdf.org 3 points 4 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.

[โ€“] dan@upvote.au 3 points 4 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.