On Thu, May 30, 2002 at 10:42:04AM +0100, Mark Fowler wrote:
> On Thu, 30 May 2002, Paul Makepeace wrote:
> 
> > Why not just explicitly return undef? It call to a function is expecting
> > a value, it's only polite to present it with a value.
> > 
> > Or, always return a reference which could of course include [] -- that
> > wouldn't get squished away.
> 
> Remember that check was a testing function.  A testing script shouldn't
> have to rely on functions that they're testing being properly written.
> Afterall, that's the point in testing them.

This is what I meant, (but didn't quite say),

check('input', [myfunction('input')], [ qw/out1 out2 out3/ ]);

..which makes the interface to check a little more internally consistent.

Paul

-- 
Paul Makepeace ....................................... http://paulm.com/

"If I thought I could change the colour of the sky, then I'm a monkeys'
 uncle."
   -- http://paulm.com/toys/surrealism/

Reply via email to