http://i.imgur.com/XB3ib.png Oh M$ Oh...
TypeScript: a language for application-scale JavaScript development
31–40 of 316 posts
Re: TypeScript: a language for application-scale JavaScript development
#32http://i.imgur.com/XB3ib.png Oh M$ Oh...
Re: TypeScript: a language for application-scale JavaScript development
#33EDIT: they've got syntax highlighting for some other editors, but full completion and error reporting is still needed http://blogs.msdn.com/b/interoperability/archive/2012/10/01/...
Re: TypeScript: a language for application-scale JavaScript development
#34Re: TypeScript: a language for application-scale JavaScript development
#35Re: TypeScript: a language for application-scale JavaScript development
#36Re: TypeScript: a language for application-scale JavaScript development
#37Weird that I didn't spot a friendly list of features.. seems to have some cool ones, like a shortened function expression (from the doc PDF): (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. L…
var names = people.map((p) -> return p.name);
(or something along those lines). Funnily enough, it reminds me of C#'s LINQ: var names = people.Select(p => p.name);Re: TypeScript: a language for application-scale JavaScript development
#38Weird that I didn't spot a friendly list of features.. seems to have some cool ones, like a shortened function expression (from the doc PDF): (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. L…
I like the shortened function form. I played around with CS for a while before going back to JS, but I do miss being able to do something like: var names = people.map((p) -> return p.name); (or something along those lines). Funnily enough, it reminds me of C#'s LINQ: var names = people.Select(p => p.name);
Re: TypeScript: a language for application-scale JavaScript development
#39Back in the day, Microsoft would use a strategy called "embrace, extend, extinguish." http://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish Recently, 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 day…
Re-reading late 90s M$ memes gets old after a time.
Re: TypeScript: a language for application-scale JavaScript development
#40Codeplex/samples/simple ( http://bit.ly/Svcc4Y ) is the same as the CoffeeScript constructors doc section ( http://bitly.com/PnLtGy )... Wonder what other stuff they borrowed from CoffeeScript?