Website | Source

The C2 project attempts to create a new language, strongly based on C. In a nutshell, the main differences with C are:

As C2 is an evolution of C, it also has explicit non goals:

Example

Hello world:

module hello_world;

import stdio as io;

fn i32 main(i32 argc, char** argv) {
    io.printf("Hello World!\n");
    return 0;
}


Tags: language   llvm   native  

Last modified 30 May 2024