This language bar is your friend. Select your favorite languages!

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)

-spec procedure() -> _.
procedure() -> io:format("#YOLO!~n").
procedure Finish (Name : String) is
begin
   Put_Line ("My job here is done. Goodbye " & Name);
end Finish;
void finish(){
    printf("My job here is done.\n");
}
(defn main- [& args]
  (println "I got all this arguments " args " and now I'm returning nil. Peace out!"))
void finish(char* name){
    cout << "My job here is done. Goodbye " << name << "\n";
}
System;
public void Print(string text)
{
    Console.WriteLine(text);
}
import std.stdio;
void finish() {
	writeln("I' m a done job");
}
void finish(String name) {
  print("My job here is done. Goodbye $name.");
}
def finish(name) do
  IO.puts "My job here is done. Goodbye #{name}"
end
import "fmt"
func finish(name string) {
  fmt.Println("My job here is done. Good bye " + name)
}
f x = print x :: IO ()
function bli() { 
	console.log('Hello World!!!');
}
var bli = function() { 
	console.log('Hello World!!!');
}
void finish(String name){
  System.out.println("My job here is done. Goodbye " + name);
}
function finish(name)
	print('My job here is done. Goodbye, '..name)
end
function finish($name) 
{
    echo "My job here is done. Goodbye $name";
}
Procedure finish(name: String);
Begin
  WriteLn('My job here is done. Goodbye ', name);
End;
sub myProcedureName {
    # Get subroutine arguments
    my ($arg1, $arg2, @rest) = @_;
    # do stuff
}
def finish(name):
	print "My job here is done. Goodbye " + name
def finish( name )
  puts "My job here is done. Goodbye #{name}"
end
fn finish(name : &str) {
    println!("My job here is done. Goodbye {}", name);
}
def doSomething(input: String): Unit = {
  println("Did something")
}
(define finish
    (lambda (name)
        (display "My job here is done. Goodbye ")
        (display name)
        (newline)))
(define (finish name)
    (display "My job here is done. Goodbye ")
    (display name)
    (newline))

Do you know the best way to do this in your language ?
New implementation...

Idiom created by

programming-idioms.org