Microsoft Samurai
By @ErikRalston
Challenges with JavaScript
Typescript Syntax
Writing code in an editor
JavaScript developers looking to solve some frustrations
struct Class {
size_t size;
void * (* ctor) (void * self, va_list * app);
void * (* dtor) (void * self);
void * (* clone) (const void * self);
int (* differ) (const void * self, const void * b);
};
struct String {
const void * class; /* must be first */
char * text;
};
- Axel-Tobias Schreiner, 1993
var ExampleClass = (function () {
function ExampleClass() {
}
ExampleClass.prototype.exampleFunction = function () {
// This is hard to read
this.exampleClassVariable = "Hello World";
};
return ExampleClass;
})();
var ex = new ExampleClass();
Made by Anders Heljsberg, the Creator of C#
Compiles into ECMAScript 6, 5, or 3
Supports back to IE7