On Wed, Apr 27, 2005 at 10:30:35AM -0600, Paul Seamons wrote:
> Minor note.
> 
> Would you want this:
> >    sub &infix:<myeq>(Str $a, Str $b) { return ($a eq $b) ? $a : ''; }
> to be [corrected]:
>    sub &infix:<myeq>(Str $a, Str $b) 
>        { return ($a eq $b) ?? $a but bool::true :: ''; }

Perhaps, but I don't know that it makes much difference for the
example given.  I probably should've chosen a name other than "myeq"
so that we aren't fooling ourselves into believing we're returning
booleans when we're really returning strings that match.  

Pm

Reply via email to