import io
fn main(int argc, **char argv) -> int
// simple type inference
foo = true
if foo
io.printf("Foo is true.\n")
else
io.printf("Foo is false.\n")
int baz = 15 // explicit type
switch baz
case 13, 14
io.printf("Baz is 13 or 14\n")
case 15
io.printf("Baz is 15\n")
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: