----- Original Message ----

> From: David E. Wheeler <da...@kineticode.com>

> >  # Won't get called unless the string has a non-digit in it
> >  multisub skip( Str $desc where { $desc ~~ /\D/ } );
> > 
> > Thus, you could call this and it will still DWIM:
> > 
> >  if $cond {
> >      skip "3";
> >  else {
> >      # run three tests
> >  }
> > 
> > Obviously, not having a description is bad, but so are straightjackets.
> 
> It's not worse than plain `skip()`.
> 
> > Also, I'm not comfortable with the heuristic nature of this.
> 
> What do you mean?


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".  
 
Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Reply via email to