On 9/25/05, Luke Palmer <[EMAIL PROTECTED]> wrote: > On 9/25/05, Juerd <[EMAIL PROTECTED]> wrote: > > We can do better than equivalence testing for colors. Instead, try to > > match. Surely a *smart* match operator really is smart? > > > > $color ~~ '#FF00FF' > > == > > $color ~~ 'magenta' > > == > > $color ~~ [ 255, 0, 255 ] > > Hmm. That violates my proposal that the right side is the thing that > determines how the left side is matched. So there's something wrong > with one of the two... > > If we keep my proposal, then we get: > > $color ~~ color('#FF00FF') > $color ~~ color('magenta')
Interesting proposal. Is there any motivation for people not to simply flip the argument-order to take advantage of the right-wise determinism? Or is that actually a benefit? '#F0F' ~~ $color ?? 'yes' !! 'no'; Ashley Winters