Rust

Rust is a statically typed systems language with ownership and borrowing instead of a tracing GC. Aims for memory safety without data races, at C / C++ performance levels.

fn greet(name: &str) -> String {
    format!("hello, {name}")
}

fn main() {
    println!("{}", greet("world"));
}

← Back to CS Glossary