Comment on Which side are you? Javascript or Typescript

<- View Parent
rockstarpirate@lemmy.world ⁨1⁩ ⁨year⁩ ago

Yeah it’s interesting because JS is interpreted, not compiled. The proposal allows for type annotations in the syntax but no actual interpreter consequences. On the one hand that makes sense because otherwise you’re in the territory of runtime type-checking which would be a huge performance hit and would sort of defeat the purpose of static types anyway. But that means you still have to rely on your IDE or a linter for this to be useful.

source
Sort:hotnewtop