Programming-Idioms

History of Idiom 3 > diff from v10 to v11

Edit summary for version 11 :

Version 10

Version 11

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
def finish(name) do
	IO.puts "My job here is done. Goodbye #{name}"
end