Logo

Programming-Idioms

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

Idiom #87 Stop program

Exit immediately.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

(System/exit 0)

Being built on the JVM, Clojure uses this to terminate instantly.
0 here indicates successful termination while all other values indicate unsuccessful termination.
return 0;

Only works in main(), actually.

New implementation...