Hacker News new | ask | show | jobs
by lucideer 2410 days ago
> TypeScript which is its own language. It's strongly typed and just happens to interop with and in some scenarios transpile down to JavaScript. It's whole existence is to deal with that billion dollar mistake you mentioned.

I'm afraid literally everything in this snippet is incorrect. The Typescript website opens with:

> Typescript JavaScript that scales. Typescript is a typed superset of JavaScript that compiles to plain JavaScript.

Typescript is Javascript. It's a superset, and as such its improvements are additive-only, by definition. The purpose of its existence is not to change or replace any JS features, only to augment them.

1 comments

> Typescript is Javascript.

In the same way as an Animal is a Camel.

In the same was as programming languages are not organisms.

Typescript is ECMAScript in the same way as Netscape JavaScript is ECMAScript, in the same way as ActionScript is JavaScript.

In the same was as Scheme is Lisp.

In a similar but not identical way as American English is English (similar but not identical since programming languages and spoken languages are both languages, but not actually the same thing: the analogy cannot map perfectly).

If you're making general statements about animals, then they should also apply to a set of camels.