in reply to Re^3: Should I use carp/croak or warn/die
in thread Should I use carp/croak or warn/die
I agree that PHPisms like 500 extra, semi-overlapping keywords can be a bad thing but I've always liked Carp's interface. Taking the generalized and parameterized route to extremes is warn and die becoming replaced with error($level, $message) or something. I use Carp's functions enough, including longmess and shortmess for logs, that I much prefer having specific functions for acking around and such.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Should I use carp/croak or warn/die
by LanX (Saint) on May 30, 2018 at 17:27 UTC | |
by Your Mother (Archbishop) on May 30, 2018 at 17:48 UTC | |
by LanX (Saint) on May 30, 2018 at 17:59 UTC | |
by karlgoethebier (Abbot) on May 31, 2018 at 20:04 UTC |