[Python-Dev] a flattening operator? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 19 06:45:23 CEST 2006
- Previous message: [Python-Dev] a flattening operator?
- Next message: [Python-Dev] a flattening operator?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Josiah Carlson wrote:
One major problem with this is that except for function calls, * is the multiplication operator, which operates on two arguments. *foo is an operation on a single argument, and without parenthesis, would be ambiguously parsed.
No, it wouldn't. There's no problem in giving an operator different unary and binary meanings; '-' already does that.
-- Greg
- Previous message: [Python-Dev] a flattening operator?
- Next message: [Python-Dev] a flattening operator?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]