414
you are viewing a single comment's thread
view the rest of the comments
[-] humorlessrepost@lemmy.world 2 points 9 months ago

Genuine question: is it really a superset if it’s not still valid javascript? Isn’t it more of an abstraction layer on top of javascript?

[-] mercano@lemmy.world 3 points 9 months ago

Superset means all valid JavaScript is also valid Typescript. (At least, so long as you don’t have compiler setting on that requires all variables to have a type declared.)

[-] CookieOfFortune@lemmy.world 1 points 9 months ago

In practice people don’t use Typescript as a superset since they have stricter compiler settings, which would make valid JavaScript fail to compile.

this post was submitted on 12 Nov 2025
414 points (96.2% liked)

Programmer Humor

33068 readers
369 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 3 years ago
MODERATORS