This language bar is your friend. Select your favorite languages!
Edit summary for version 4 :

Version 3

Version 4

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Code
fn finish(name : &str) { println!("My job here is done. Goodbye {}", name); }
Code
fn finish(name : &str) {
    println!("My job here is done. Goodbye {}", name);
}
Comments bubble
The actual return type is Unit, typed '()' and can be ommited from function signature.
Comments bubble
The actual return type is Unit, typed '()' and can be ommited from function signature.
Demo URL
http://is.gd/KqExyU