RECENT POSTS

P5-carp-assert-more

May 26, 2018

Convenience wrappers around Carp::Assert

CarpAssertMore is a set of wrappers around the CarpAssert functions to make the habit of writing assertions even easier.

Everything in here is effectively syntactic sugar. There’s no technical reason to use

assert_isa $foo, 'HTMLLint' ;

instead of

assert defined $foo ;
assert ref$foo eq 'HTMLLint' ;

other than readability and simplicity of the code.

My intent here is to make common assertions easy so that we as programmers have no excuse to not use them.

WWW http//search.cpan.org/dist/Carp-Assert-More/