Last active
August 29, 2015 14:24
-
-
Save hybrist/927f954bc9206cf98ccf to your computer and use it in GitHub Desktop.
Minimal interesting Zoidberg program
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
| getName() { | |
| &"Quinn"; | |
| } | |
| # Result: | |
| # | |
| # async function getName() { | |
| # return Promise.resolve("Quinn"); | |
| # } |
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
| using process::{ stdout: NodeStream }; | |
| using fs::{ readFile: (filename: String) -> String* }; | |
| main(argv: String[]): Int32* { | |
| name = getName(); | |
| stdout << "The name has "; | |
| stdout << name->length; | |
| stdout << " letters.\n"; | |
| &0; | |
| } | |
| getName(): String* { | |
| readFile("name.txt"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment