Given that part of the attractiveness of Clojure is that you can use Java class libraries, why not just do:
(System/exit 0)
For a more complete reference, you call any Java classes static methods by specifying
(my.package.class/staticMethodName arg1 arg2 etc)
java.lang.*
is loaded automagically for you already though if it where not you could call it with
(java.lang.System/exit 0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With