Skip to content

Instantly share code, notes, and snippets.

@jkrems
Last active August 29, 2015 14:24
Show Gist options
  • Save jkrems/927f954bc9206cf98ccf to your computer and use it in GitHub Desktop.
Save jkrems/927f954bc9206cf98ccf to your computer and use it in GitHub Desktop.
Minimal interesting Zoidberg program
getName() {
&"Quinn";
}
# Result:
#
# async function getName() {
# return Promise.resolve("Quinn");
# }
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