394
Personally I prefer throw new nullpointerexception
(pawb.social)
Post funny things about programming here! (Or just rant about your favourite programming language.)
I have never used
System.exit()
orsys.exit()
. What is a use case where you would call these explicitly?Applications where you aren't using some sort of framework. Usually MVC or other frameworks would handle this or are designed to continuously run.
Perl is funnier, as these are valid ways of exiting with an exception:
readFile() or die;
die unless $a > $b;