this post was submitted on 25 Jun 2023
377 points (98.0% liked)

Programmer Humor

31250 readers
1554 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lowleveldata@programming.dev 5 points 1 year ago (4 children)

I have never used System.exit() or sys.exit(). What is a use case where you would call these explicitly?

[–] epyon22@sh.itjust.works 4 points 1 year ago (1 children)

Applications where you aren't using some sort of framework. Usually MVC or other frameworks would handle this or are designed to continuously run.

[–] jsveiga@vlemmy.net 15 points 1 year ago

Perl is funnier, as these are valid ways of exiting with an exception:

readFile() or die;

die unless $a > $b;

load more comments (2 replies)