+ Brings Visual Studio developers to node.js
I was wondering about this... in the video he does a lot of emphasis in the code completion (intellisense). What is the value of this outside Visual Studio? Why you will make your javascript typed? just to compile it into something similar and get compiler errors?
Participe en la XVI Convención Científica de Ingeniería y Arquitectura del 26 al 30 de noviembre de 2012. La Habana, Cuba: http://ccia.cujae.edu.cu
At http://www.typescriptlang.org/#Download: There is also TypeScript support for other editors available.
The benefit comes when v8 can super-optimize your code because you have "implied types".
For less sophisticated developers (most people, and most of the VS market), the compiler errors will remove much debugging frustration and allow them to focus on creating rather than debugging.
Gus
> The above example is fairly contrivedAnd useless. The JS would work fine passing it a number.
Rick, that's super interesting however I've said "most", and there's no reference to these type of optimizations in TypeScript. It even says "in any browser, in any host", so who will perform those optimizations? Looks like TypeScript is not. Actually, this:Greeter.prototype.greet = function(a: string) {return "Hello, " + a;}Translates to this:Greeter.prototype.greet = function (a) {return "Hello, " + a;};So no +1 for TypeScript in this case :)
> Yes, it will work, that's not the point.Then give me an example that does make the point. I'm a little thick-headed.
> This will allow the runtime to then perform explicit string optimizations (whatever those might be).But there aren't any optimizations that can be made. All I'm asking for is one real use case that does something useful.
}--
On Oct 1, 2012, at 1:40 PM, José F. Romaniello <jfroma...@gmail.com> wrote:I was wondering about this... in the video he does a lot of emphasis in the code completion (intellisense). What is the value of this outside Visual Studio? Why you will make your javascript typed? just to compile it into something similar and get compiler errors?Many code editors do code completion -- it is a great productivity tool for developers ramping on using modules they are not intimately familiar with. MS made the code available which makes it easier for other editors / IDEs to do the same.
For less sophisticated developers (most people, and most of the VS market), the compiler errors will remove much debugging frustration and allow them to focus on creating rather than debugging.
Code completion was a HUGE feature for Perl and Python developers when I built Komodo at ActiveState.-- Dick
+1 on this being blogged. not into TypeScript but would be very interested in you elaborating on the two rules / js optimization info you mention in the beginning.
semi-related note, I'm very impressed that cloud9 already has TypeScript support
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en