From: "alexeymuranov (Alexey Muranov)" <redmine@...>
Date: 2012-11-17T00:00:12+09:00
Subject: [ruby-core:49424] [ruby-trunk - Feature #7322] Add a new operator name  #><  for bit-wise "exclusive or"


Issue #7322 has been updated by alexeymuranov (Alexey Muranov).


Speaking of Fortran, there the binary `*` has higher precedence than the unary `-`, which has approximately the same as the binary one.  (This is not about this issue, but about #7328 and #7331.)

I would way it is unfortunate that the main reason to reject it that Ruby is too old to change.  (The changes would not need to be immediate, i think that aliases can be introduced or deprecated between major versions.)  But i am not a heavy Ruby user, i was only proposing my ideas hoping that they could be useful for others too.
----------------------------------------
Feature #7322: Add a new operator name  #><  for bit-wise "exclusive or"
https://bugs.ruby-lang.org/issues/7322#change-32963

Author: alexeymuranov (Alexey Muranov)
Status: Rejected
Priority: Low
Assignee: 
Category: 
Target version: 


=begin
I propose to alias (({Fixnum#^})) and (({Bignum#^})), which stand for bit-wise "exclusive or", with a new operator name (({#><})).

Is it necessary to go along with C, Python, and Mathematica?
According to Wikipedia ( http://en.wikipedia.org/wiki/Exclusive_or#Alternative_symbols ), the "^" symbol is not used for XOR outside of programming context.

Here are some examples of mathematical notation: http://mathworld.wolfram.com/XOR.html (there are also examples in the Wikipedia article).

The Unicode symbol is "���".

If eventually (({Fixnum#^})) as XOR is deprecated, this will liberate this symbol for other uses, for example for all kinds of exponential notations (for me, "a^n" usually means "the n-th power of a").
=end



-- 
http://bugs.ruby-lang.org/