Stevan Little writes:
> So if I understand you correctly, then the implementation code would 
> look something like this right?
> 
> sub cmp_ok (Str $got, Code $comparison_func, Str $expected, Str ?$desc) 
> returns Bool is export {
>       my $test := $comparison_func($got, $expected);
>       ....
> }

Umm, except for the :=, I think that's right.  And I think the := is
right too, but it's awkward.  Maybe.  So, sure, that's right.

And currently in pugs, you'd call it like:

    cmp_ok(3, &infix:gt, 2, "3 > 2");

That is, pugs doesn't grok the &infix:<operator> syntax yet.

Luke

Reply via email to