DEV Community

Discussion on: What would you pay for type checking?

Collapse
 
florianrappl profile image
Florian Rappl

Who said JS is untyped?! The definition is that JS is dynamically typed, i.e., types can in general only be seen at runtime. This is in contrast to static typing where the compiler knows all the types in advance.

While the performance argument is legit I think the real question is: "how many bugs need to be caught upfront to justify additional tooling?". I think a single one already justifies slower builds.

Collapse
 
szabba profile image
Karol Marcjan

AFAIK people who say that are pedantically using a specific, technical definition of what a type is that was never intended to be used in all contexts.