Not sure if there is an overwhelming financial benefit for Microsoft, though the ECMAScript fans are sure to be vocal.
I think you may want to rephrase; so that C# code can run in the browser?
I have been looking at Dart for sometime now, as a full time c# dev, i really like it.
It has a lot of .Net like features in it (Base Class Library. But I really would wish Microsoft would "Dart" in c#.
One of the things that really struck me, good thing, is that it has a built in "Jquery" like system and binding. It's very XAML like and it takes care of browser incompatibilities.
I think if Google ends up using for GMail or some other google services, it might get some traction.
@vesuvius: to monetize a web language have hooks to azure and bing.
Dart, as I understand it, compiles to .js which then runs in the browser. Would C# be able to do the same?
I see Dart is not statically typed ( guessing ) . Is that a requirement of a DOM language? Maybe have it statically typed where all the HTML5 attributes are pre defined. And if you introduce new attributes to the HTML tags you have to declare them somehow to the classes the language uses to represent the DOM objects?
@SteveRichter: Dart is optionally typed (if you want static typing, you can have it, else dynamic by default). JS as a compiler target is nothing new for C# (Script# has been around for a while). Erik Meijer's IL2JS project is now open source (I believe).
Dart compiles to JS out of necessity as all browsers besides Chrome do not ship with the Dart VM... So, when you want to program with Dart and target web clients (besides Chrome), then JS is the only option as the compiler target (same is true in the C# case and a myriad of other languages that compile to JS).
That is really neat to know. Thank you. So what am I missing? Why is Script# not a big deal? And what does Dart provide ( other than the Dart VM ) that Script# does not?
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.