Last active
August 29, 2015 14:09
-
-
Save bettysteger/bc1fba8b34e18e82f6d1 to your computer and use it in GitHub Desktop.
AtScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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