DEV Community

Discussion on: Is TypeScript Really... A Language??

Collapse
 
andrueandersoncs profile image
Andrue Anderson

Is Typescript really a programming language? Hmm. Interesting question! My instincts say yes, mainly due to the compilation (transpilation?) step, the added semantics, the additional syntax, and the additional keywords. The fact that it (com/trans)piles to JS is irrelevant in my mind due to the reasons you pointed out in the article. Many languages transpile to JS these days. It all becomes machine code eventually. Even looking at running code on any machine one can see that code and data are indistinguishable. So the answer for me is yes, if only because of the added language constructs (namely, type and interface.) If JS itself could process these constructs without a transpilation step I would consider them to be the same language. If these constructs were implemented as functions (and I could think of ways one could go about that) then I would consider it to be a framework.

Really liking the train of thoughts! Write something on class vs functional components, I really wanna get into the weeds on that. I have lots to say on the benefits of functions ;)

Collapse
 
bytebodger profile image
Adam Nathaniel Davis