On Thu, Jan 29, 2009 at 09:00:06AM +0100, Eirik Berg Hanssen wrote:
: Jon Lang writes:
:
: > So "$a -<=> $b" is equivalent to "$b <=> $a", not "-($a <=> $b)". OK.
: > I'd suggest choosing a better character for the meta-operator (one
: > that conveys the meaning of reversal of order rather than
Jon Lang writes:
> So "$a -<=> $b" is equivalent to "$b <=> $a", not "-($a <=> $b)". OK.
> I'd suggest choosing a better character for the meta-operator (one
> that conveys the meaning of reversal of order rather than opposite
> value); but I don't think that there is one.
A transposition of
On Jan 27, 2009, at 12:29 PM, Jon Lang wrote:
So "$a -<=> $b" is equivalent to "$b <=> $a", not "-($a <=> $b)". OK.
I'd suggest choosing a better character for the meta-operator (one
that conveys the meaning of reversal of order rather than opposite
value); but I don't think that there is one.
Larry Wall wrote:
> Jon Lang wrote:
> : If there are only a handful of operators to which the new
> : meta-operator can be applied, why do it as a meta-operator at all?
>
> As a metaoperator it automatically extends to user-defined comparison
> operators, but I admit that's not a strong argument.
On Tue, Jan 27, 2009 at 11:56:16AM -0800, Larry Wall wrote:
: Arguably autogenerated operators should give way to hardwired ones,
: much like foo\w* gives way to foobar currently.
Though I should point out that this wouldn't help with -=, since it's
autogenerated either way, unless you divide the
On Tue, Jan 27, 2009 at 10:59:34AM -0800, Jon Lang wrote:
: If there are only a handful of operators to which the new
: meta-operator can be applied, why do it as a meta-operator at all?
As a metaoperator it automatically extends to user-defined comparison
operators, but I admit that's not a stron
On Tue, Jan 27, 2009 at 9:43 AM, wrote:
> +=head2 Reversed comparison operators
> +
> +Any infix comparison operator returning type C may be transformed
> into its reversed sense
> +by prefixing with C<->.
> +
> +-cmp
> +-leg
> +-<=>
> +
> +To avoid confusion with the C<-=> operator,