DEV Community

Discussion on: What are the great function/method/etc. names in popular libs/languages?

Collapse
 
jakebman profile image
jakebman • Edited

And those were named to fit the model of die (exit, failing, with message)

Also Perl's or operator is intentionally lower precedence than almost anything else so you can:

my $file = open '/dev/zero' or die "Couldn't open file";

"OR DIE!"