Skip to content

Instantly share code, notes, and snippets.

@rightfold
Created March 7, 2015 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rightfold/beeae76720c467ff5fd8 to your computer and use it in GitHub Desktop.
Save rightfold/beeae76720c467ff5fd8 to your computer and use it in GitHub Desktop.
use std.io;
proc main(x: Boolean) {
io.writeln(if x {
io.writeln("Hello, world!");
"TRUE";
} else {
if x {
unreachable;
} else {
io.writeln("Byebye, world!");
"FALSE";
};
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment