Why do we pass 0 as a parameter to "exit"?
exit, ruby
Solution
This is an 'exit code'.
This exit code has special meaning in some cases (see for example http://tldp.org/LDP/abs/html/exitcodes.html)
You can pass whatever you want, if the code isn't caught after, this will have no effects.
Here '0' is for 'Everything works fine !'
Problem
In the book learn ruby the hard way, I found a syntax to exit from the program: ``` Process.exit(0) ``` Why is the parameter `0` being passed in the `exit` method here even though it works if I pass another integer or do not pass any parameter? What is the significance of `0`?