Programming-Idioms

History of Idiom 3 > diff from v6 to v7

Edit summary for version 7 :

Version 6

Version 7

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
void finish(String name) {
  print("My job here is done. Goodbye $name.");
}
Demo URL
https://dartpad.dartlang.org/732920a06cbc81d4a47e