Logo

Programming-Idioms

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

Implementation edit is for fixing errors and enhancing with metadata. Please do not replace the code below with a different implementation.

Instead of changing the code of the snippet, consider creating another Elixir implementation.

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
System.exit(0);
std::process::exit(0);
halt(0);
import core.stdc.stdlib;
exit(0);
erlang:halt(0).
exit 0;
import sys
sys.exit(1)
import "os"
os.Exit(0)
exit
import System.Exit
exitSuccess
exit();
os.exit()
#include <stdlib.h>
exit (EXIT_SUCCESS);
return 0;
process.exit()
stop
Environment.Exit(0)
IDENTIFICATION DIVISION.
PROGRAM-ID. date format.
PROCEDURE DIVISION.
STOP RUN.
exit(1);
End()
#include <stdlib.h>
abort();
die();
(exit)
import kotlin.system.exitProcess
exitProcess(0)
(exit)
import 'dart:io';
exit(0);
(System/exit 0)