Linked by Thom Holwerda on Mon 1st Oct 2012 22:55 UTC
General Development "Everyone seems to have a replacement for JavaScript - Google even has two. Now Microsoft has revealed that Anders Hejlsberg has been working on a replacement and it has released a preview of TypeScript. TypeScript is open source - Apache 2.0 license - and a superset of JavaScript. As you would expect from a Hejlsberg language it incorporates type checking, interfaces and lots of syntactic sugar."
Thread beginning with comment 537284
To view parent comment, click here.
To read all comments associated with this story, please click here.
Member since:

So technically, yes, sorry, the creator of C# knows his terminology.


That is why _his_ slides and the website now say:

Optional Static Types

Reply Parent Score: 3

Nelson Member since:

The point is, you can say static typing without implicitly saying strong typing. You're splitting hair and claiming some grand marketing conspiracy. Please.

To suggest the creator of C# is purposely misleading is preposterous.

Reply Parent Score: 2

butters Member since:

As far as I can tell, the is no universal agreement on the definitions of strong or weak typing, and even if there were, the extent to which type annotations are mandatory or optional is irrelevant.

In my view, a weakly-typed language must support implicit type coercion at least to some extent. C is a weakly-typed language which will, for example, happily add an integer to the ascii representation of a character. Python is an example of a strongly-typed language which will complain loudly if you attempt the same. But you'll never find type annotations in Python.

Languages like JavaScript and PHP go to much greater lengths to use implicit type coercion to avoid type errors, with occasionally hilarious results. JS isn't a weakly-type language because it doesn't require type annotations. It's a weakly-typed language because, for example, [] + [] == '';

Reply Parent Score: 3