Over a million developers have joined DZone.
Silver Partner

Stop Bashing TypeScript

· Java Zone

The Java Zone is brought to you in partnership with JetBrains.  Learn about instant and clever code completion, on-the-fly code analysis and reliable refactoring tools with IntelliJ IDEA.

I was unpleasantly surprised to see all the bashing of the TypeScript language. Like “the last thing I want to see is type errors”, “all these types! only C# developers will use it”, etc.

I’m curious if all the people complaining about type errors have ever used languages that have optional structural types? How many of them had spend a couple of weeks playing with Strongtalk and Newspeak? How many of them had mastered OCaml and Go? The fact that somebody had some unpleasant time using Java ten years ago doesn’t give him or her the absolute knowledge about all the type systems in the world.

Where does this arrogance come from? Don’t you want to try a language with an optional type system and see how it differs from the mandatory one? Aren’t you curious about structural types? No? That’s alright, you don’t have to. But then don’t bash the language you haven’t tried.

By the way, I haven’t used Microsoft products for many years. And most of the development I’ve been doing recently involved a lot of Ruby and Javascript. So I’m not a C# programmer who cannot live without autocompletion.

The Java Zone is brought to you in partnership with JetBrains.  Learn about instant and clever code completion, on-the-fly code analysis and reliable refactoring tools with IntelliJ IDEA.

Topics:

Published at DZone with permission of Victor Savkin , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}