Skip to content

Instantly share code, notes, and snippets.

@bettysteger
Last active August 29, 2015 14:09
Show Gist options
  • Save bettysteger/bc1fba8b34e18e82f6d1 to your computer and use it in GitHub Desktop.
Save bettysteger/bc1fba8b34e18e82f6d1 to your computer and use it in GitHub Desktop.
AtScript
// AtScript
class MyClass {
methodA(name:string):int {
var length:int = name.length;
return length;
}
}
// ES6
class MyClass {
methodA(name) {
var length = name.length;
return length;
}
}
// AtScript
class Point {
x:int;
y:int;
}
// ES6
class Point {
constructor() {
this.x = null; // auto-generated
this.y = null; // auto-generated
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment