"Piers Cawley" <[EMAIL PROTECTED]> wrote :
> >   $a eq : ID $b  # yes, I would want to generalize that
>
> I started off thinking 'well, you could just define an 'is' operator'
> and then realised we already have one. Hmm. Personally i don't have a
> problem with not having an operator for this particular
> functionality, I reckon it 'belongs' as a message...


I've been thinking about my initial suggestions, and the rx modifiers
came to mind:

I can imagine writing:

  $a eq:i $b  # compare, case insensitive
  $a eq:w $b  # compare, ignore whitespace differences
  $a eq:ID $b # compare identities

I think that the modifier concept is too useful to be limited to the
rx// operator. But there is the issue of passing parameters to
modifiers. I could live with a restriction that forces me to use
the prefix (cf infix) form of the modified operator.


Dave.


Reply via email to