develooper Front page | perl.qa | Postings from January 2009

Re: Perl 6 and Test.pm's skip() function

From:
chromatic
Date:
January 21, 2009 14:10
Subject:
Re: Perl 6 and Test.pm's skip() function
Message ID:
200901211409.37892.chromatic@wgz.org
On Wednesday 21 January 2009 13:47:24 Ovid wrote:

> If a programmer listed '3' as their skip reason, that would be interpreted
> as the number of tests to skip. Admittedly, it would be stupid for
> programmers to do that (and unlikely that they would), but we shouldn't be
> telling them "here's another rule to remember".

*Every* time I use skip() in Perl 5, I have to remember the rule that the 
*description* comes first, and the the test number.  I only fail to make this 
mistake if I've already made it within the past five minutes.

Every API gives people rules to remember.  Good design tries to make them 
*easy* to remember.  Bad design gives them php.net.

-- c



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About