Jarkko Hietaniemi wrote:
> " e q "
that breaks our long and glorious tradition of splitting tokens
on whitespace. How about e_q for this one?
> That is, an operator that ignores any leading, any trailing, and treats
> all intraspace as equivalent. If the embedded space is confusing, I may
> consider suggesting an operator modifier, "/ ".
>
> Secondly,
>
> Eq,
>
> which operates only the so-called dictionary order, that is,
> ignoring all non-alphabetic characters (and case). I will possibly
> also want Cmp which will sort "foo200" before "foo1000".
okay
> Thirdly, I want
>
> ==/R
>
> which will know that "v" is equal to 5, I need to keep my lists of Popes
> in good order.
righteous
> Fourthly, I want
>
> eq/multinlingual
>
> since I simply need to have
>
> "jouluaatto" eq "Christmas Eve"
that one might be kind of tricky. But the only thing perl5 lacks
that would allow all of the above (exept for a keyword with whitespace
in it) is a way to specify an infix function.
What would it look like? How about
sub Cmp:infix($:string,$:string){...}
I think your suite of case-insensitive comparisons would make
beautiful example code in the RFC.
How tightly it binds could be indicated by a pair of numbers
after the x in the :infix, what they would mean is also up in the air.
--
David Nicol 816.235.1187 [EMAIL PROTECTED]
safety first: republicans for Nader in 2000