TypeScript: a language for application-scale JavaScript development
11–20 of 316 posts
Re: TypeScript: a language for application-scale JavaScript development
#12Say what you want about whether this is a good idea or not, it is clear at least part of MS is really serious about open source. * TypeScript is under the Apache 2.0 license [1] * Source is available via git on Codeplex [2] * Installation is as easy as npm install -g typescript [3] Extra bonus coolness: They've provided an online playground like jsfiddle! [4]. [1] http://typescript.codeplex.com/license [2] http://typ…
Re: TypeScript: a language for application-scale JavaScript development
#13Now I want to take an advantage of strict typing at runtime, which is obviously not possible, because instead of standardizing a VM all vendors are doing stupid things like this.
I'm willing to bet MS has built runtime type support into the Chakra VM. The question is whether they will do it in a propitiatory way or push it as an extension of ECMAScript and try to get other VMs to implement it.
Re: TypeScript: a language for application-scale JavaScript development
#14 (x) => { return Math.sin(x); }
and modules, which are implemented using the immediately invoked function expression pattern: module M {
var s = "hello";
export function f() {
return s;
}
}
Syntax seems more clear than CoffeeScript and tool chain will probably shape up better. Looking forward to seeing this get some traction.Re: TypeScript: a language for application-scale JavaScript development
#15Haven't we come to a consensus that types are more trouble than they're worth? They hurt clarity and catch few bugs.
Re: TypeScript: a language for application-scale JavaScript development
#16Now I want to take an advantage of strict typing at runtime, which is obviously not possible, because instead of standardizing a VM all vendors are doing stupid things like this.
I'm willing to bet MS has built runtime type support into the Chakra VM. The question is whether they will do it in a propitiatory way or push it as an extension of ECMAScript and try to get other VMs to implement it.
Re: TypeScript: a language for application-scale JavaScript development
#17Now I want to take an advantage of strict typing at runtime, which is obviously not possible, because instead of standardizing a VM all vendors are doing stupid things like this.
I'm willing to bet MS has built runtime type support into the Chakra VM. The question is whether they will do it in a propitiatory way or push it as an extension of ECMAScript and try to get other VMs to implement it.
"Asked whether Microsoft might do something to prioritize TypecSript in Internet Explorer, Lucco, the chief architect of IE’s JavaScript rendering engine Chakra, says no."
[1] http://techcrunch.com/2012/10/01/microsoft-previews-new-java...
Re: TypeScript: a language for application-scale JavaScript development
#18Recently, Microsoft has been pushing Javascript very hard (embrace) and now it looks like they've started the "extend" phase.
Luckily, no one really worries about them being able to pull off the "extinguish" part anymore... they just don't have enough market power these days.
EDIT: Yes, I conceede the fact that TypeScript is OS probably addresses most of these objections.
Re: TypeScript: a language for application-scale JavaScript development
#19Re: TypeScript: a language for application-scale JavaScript development
#20I've written a lot of JavaScript, including large-scale projects, and never once have thought, "Gee, I wish I had type checking." Haven't we come to a consensus that types are more trouble than they're worth? They hurt clarity and catch few bugs.
Pretty sure we haven't. That shitty languages with shitty type systems are mor trouble than they're worth yes, but types?