1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/devel/p5-Carp-Assert-More/pkg-descr
Aaron Dalton addbc6f779 Adding port devel/p5-Carp-Assert-More, Convenience wrappers around
Carp::Assert.

Approved by:	tobez (implicit)
2006-06-14 04:57:35 +00:00

21 lines
569 B
Plaintext

Carp::Assert::More is a set of wrappers around the Carp::Assert 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, 'HTML::Lint' );
instead of
assert( defined $foo );
assert( ref($foo) eq 'HTML::Lint' );
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
Author: Andy Lester