Random832 <random...@fastmail.com>: > Marko Rauhamaa <ma...@pacujo.net> writes: >> Actually, the real question is, is the unary - *really* so useful >> that it merits existence or is it just something that was mindlessly >> copied into programming languages from elementary school arithmetics? > > The alternative, if you want to be able to specify negative numbers at > all, is to put - in the literal syntax. So what's "x-1"?
Yes, it would have to be part of the literal syntax. Or, you could do without! >>> 7 - 8 (0-1) After all, we already have: >>> 1 + 3j (1+3j) Marko -- https://mail.python.org/mailman/listinfo/python-list