Live data from Hacker News

TypeScript 0.9 released

blogs.msdn.com

51–60 of 81 posts

Re: TypeScript 0.9 released

#51
post #16
post #15

I saw the original announcement of Typescript at JSconf EU last year. It was an interesting moment: everyone was expecting another Dart, or less (there's a sea of Macs and most professional JS devs experience of Microsoft is IE) but stayed to listen to the presentation out of respect for the creator, who also made Delphi and C#. Pretty much everyone came out impressed. Typescript is just JS with type hints, and neat…

It seems to be very close to CoffeeScript, but without this ugly Ruby syntax (for me).

I disagree. 1. Coffeescript is far from ugly, and also not particularly similar to Ruby :p 2. Typescript includes types and brackets. Coffeescript does not. 3. Icedcoffescript includes async/defer keywords. I include this last point only as a result of a personal perspective that if you're going to use coffeescript, you might as well use icedcoffeescript.

Re: TypeScript 0.9 released

#52
post #2

TypeScript is a language for application-scale JavaScript development. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open Source. (C) http://www.typescriptlang.org/ Btw, I've used it a lot, feel free to ask any questions.

I wonder if there are any ugly things or traps in programming TypeScript.

The JavaScript gotchas will still getcha, such as variable hoisting. I tend to forget they are still there when working in TypeScript, but that's my fault.

Re: TypeScript 0.9 released

#53
post #50

For people looking for an editor in which to try out TypeScript, I'll note that there's a neat looking community-written TypeScript extension[1] for Brackets[2]. (I work on Brackets). I've been using dynamically typed languages consistently since 2005, but I'm curious to give TypeScript a try to see how it feels. The last statically typed language I used was Java (2004), and that was not a wholly pleasant experience.…

I really like the Brackets editor, but the TypeScript extension is still 0.8 isn't it?

Re: TypeScript 0.9 released

#55

I use both TypeScript and Dart for different uses cases (Dart lacks IE8 support) and both are a joy to use compared to POJS (plain old JavaScript.)

Who on earth still care for IE8 ? I can't see any good reason not to use Dart instead of TypeScript, and there are plenty of reasons to use Dart:

- VM in Chrome will give us speed

- VM snapshoting - faster app startup

- batteries included - basic framework + pub package manager all this with tree shaking (smaller aps)

- server/client programming

- decent tooling on all major OSes

- optional types

Promoting TypeScript will push us again into windows gettho to have a reasonable IDE.

Re: TypeScript 0.9 released

#56
I think TypeScript is a cool idea, but I actually want runtime type checking. I don't know how many developers code with "design by contract" where you have contracts enforced not just at compile time, but at runtime. It allows for some incredibly smart, pluggable systems. I really don't know why there isn't more done with runtime type checking in various dynamic languages.

Re: TypeScript 0.9 released

#57
post #15

I saw the original announcement of Typescript at JSconf EU last year. It was an interesting moment: everyone was expecting another Dart, or less (there's a sea of Macs and most professional JS devs experience of Microsoft is IE) but stayed to listen to the presentation out of respect for the creator, who also made Delphi and C#. Pretty much everyone came out impressed. Typescript is just JS with type hints, and neat…

I had no idea this was the baby of the Delphi/C# guy. I am super excited now.

Re: TypeScript 0.9 released

#58
post #16

Earlier quoted context omitted.

It seems to be very close to CoffeeScript, but without this ugly Ruby syntax (for me).

It's completely unrelated to CoffeeScript, as CS does practically no static analysis and generally CS does almost nothing more than pure JS. What it does is it translates some keywords to a chunks of JavaScript code. If JS had macros - sweet.js! - Coffee would be completely unneeded. TypeScript is entirely different thing. It adds a layer of static analysis to the language, which does not end in the code that actuall…

You're absolutely right. I'm an C# dev who switched to JavaScript stack and using TypeScript already for 5-6 months. It was just a first-look description for the TypeScript.

Btw, TypeScript also aiming to fix context problem so in callbacks 'this' keyword is always related to parent class.

Re: TypeScript 0.9 released

#59
post #51
post #16

Earlier quoted context omitted.

It seems to be very close to CoffeeScript, but without this ugly Ruby syntax (for me).

I disagree. 1. Coffeescript is far from ugly, and also not particularly similar to Ruby :p 2. Typescript includes types and brackets. Coffeescript does not. 3. Icedcoffescript includes async/defer keywords. I include this last point only as a result of a personal perspective that if you're going to use coffeescript, you might as well use icedcoffeescript.

I'm sorry, I'm not a Ruby developer and hope never would :) From my prospect - all languages, which has no brackets are ugly and simular to ruby.

Btw, based on typescript discussions, they are going to implement async/await functionality too.

Post reply on HN