On Tue, Jun 04, 2019 at 01:20:14PM +0100, Rhodri James wrote:
> On 04/06/2019 11:06, Yanghao Hua wrote:
> >[...]  what I needed is an operator that does not
> >collide with all existing number/matrix operators.
> 
> Why?
> 
> That's the question that in all your thousands of words of argument you 
> still haven't answered beyond "because I want it."



(1) Because they're already being used. That rules out operators that 
are supported by numbers at least, since the primitive values in his 
code are numbers.

So once you remove the operators supported by numbers:

    + - * / // & ** ^ & | << >> ~ < > <= >= == != 

(have I missed any?) I think that only leaves @ remaining.



(2) Because things which act different should look different, and things 
which act similar should look similar. Yanghao Hua wants an operator 
which suggests a kind of assignment. Out of the remaining set of 
operators, which one do you think suggests assignment?


-- 
Steven
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to