import io;
fn main(argc: usize, argv: **char) {
// simple type inference
let foo = true;
if foo {
io.printf("Foo is true.\n");
} else {
io.printf("Foo is false.\n");
}
let baz: u32 = 15; // explicit type
switch baz {
13, 14 => io.printf("foo");
15 => io.printf("bar");
}
}
C4 is a programming language in development. Its target audience are people who like C and the low-level control that it gives, but dislike some of C's quirks. C4 intends to polish C while retaining its semantics.
We want a C-like language, but with: