DEV Community

Bob Firestone
Bob Firestone

Posted on

1

Typescript is really just an aggressive linter

Until typescript is doing runtime type checking it is just an aggressive linter and that’s okay. Having something to sanity check that the things you are passing around should have the right interface is valuable for developers. Compile time type checking is not going to be 100% effective at runtime. Let’s be honest it doesn’t actually need to be to provide a lot of value.

Top comments (1)

Collapse
 
matjones profile image
Mat Jones

I don’t think it’s accurate to say it’s “just an aggressive linter”. It’s a distinct programming language, with language features that don’t exist in JavaScript.

Compile time type checking is not going to be 100% effective at runtime

But that’s true for literally any language.

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay