DEV Community

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

Collapse
 
rrbs_s profile image
rs.s • Edited

Is C# a language? It allows both dynamic and static typing, just like TypeScript. The dynamic keyword was introduced in C# 4.0.

Is C# 3.0 a REAL language while C# 4.0 is not a language, just some framework written by a developer ranting about only having strong typing?

My opinion:
Just because something is a superset of another language does not mean it is not a language.
If JS creators would create ”JS2.0” with strong typing, would it not be a language? Only difference is that TypeScript has another name (just a branch of a language I’d say)
Whether one likes/dislikes static/dynamic typing is of no influence on the definition of language.

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

Agreed on all points. I would only follow up with one question:

Is C# 4.0 a separate language from C# 3.0??

And yeah, I know that this comment (and this post) is insanely semantic. But I've never seen anyone list C# 4.0 and C# 3.0 as separate languages. But the common convention seems to be that TypeScript is commonly referred to as a separate language.

Is it somehow "bad" or "harmful" that TS is usually referred to as a standalone language?? No. But these are just the kinda nerdy things that occasionally keep me up at night.

Maybe I just need to fix myself a stronger cocktail...

Collapse
 
rrbs_s profile image
rs.s

Is C# 4.0 a separate language from C# 3.0??

Yes ;)