Mozilla, the developers of Firefox, the best web browser, have created a new programming language called Rust. If you are familiar with the C-family then you will have no problem learning Rust. Although, there are many differences in both syntactic and semantic details. Rust was designed with the “programming in the large” in mind. The source files of the Rust programming language have a .rs extension. You can find a tutorial and more information about the Rust programming language in its website. Here is how a small program in Rust looks like.

use std;
import std::io;

fn main() {
    for i in [1, 2, 3] {
        io::println(#fmt("Number %d\n", i));
    }
}

The code will print three lines saying Number 1, Number 2 and Number 3 respectively. As you noticed, functions are declared with fn in Rust. The only strange thing in this code is the #fmt which is a printf-style text formatting macro which is expanded at compile-time. This means that the macro will check the types of the directives with the types of the arguments provided, and if they don’t mach, it will generate a compile error. From time to time we see new programming languages created, we will wait to see if Rust will be accepted by the software developers.

Source: [Rust]

Rust: A new programming language by Mozilla