Last active
August 29, 2015 14:17
-
-
Save CinchBlue/74481abe4a44f72c0dbf to your computer and use it in GitHub Desktop.
This file contains 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
//In Mask, this is how you would structure your main function. | |
//It's similar to C, but even the main() function is of a mask type | |
//func takes the return type as its first argument for its construction | |
//Here, the : is similar to an open bracket | |
func main(argc, argv) -> int: | |
//var is the general data type. | |
//It is cast automatically to a String data by the compiler, | |
//But, it's type is still unknown. | |
//For static typing, you would use a mask called "String" | |
var text = "Hello World!" | |
//By default, print(var) will cast to String | |
print(text) | |
//of course, we return 0 | |
return 0 | |
; | |
//semicolons close the function definition | |
func main(argc, argv) -> int: | |
var text = "Hello World!" | |
print(text) | |
return 0 | |
; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment