Luke Palmer <[EMAIL PROTECTED]> wrote:
> I wonder if there is a macroey thing that we can do here.  That is,
> could we make:
>
>     ok(1);
>     is(1, 1);
>     like("foo", /foo/);
>
> Into:
>
>     ok(1);
>     ok(1 == 1);
>     ok("foo" ~~ /foo/);
>
> And lexically analyze the argument to ok() to find out how to report
> the error?  Something in the style of Smart::Comments which looks at
> subexpressions and tells you about them automatically.

It strikes me that the test framework is probably the one part of the
libraries where simplicity is more important than DWIMmery, lest a
Perl bug manifest itself somewhere deep in the bowels of the test
framework itself.

--
Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker

Reply via email to