Ticket #591 (closed enhancement: wontfix)

Opened 3 years ago

Last modified 1 year ago

Infix predicates for Identity

Reported by: simon Assigned to: anonymous
Priority: normal Milestone: 1.5
Component: Identity Version:
Severity: normal Keywords: operator, infix 2.5
Cc:

Description (Last modified by jorge.vargas)

As much as I love Lisp, Any and All are not exactly the pinnacle of Pythonic. Therefore I propose we overload infix operators & (and), | (or), ~ (not) and perhaps even ^ (exclusive or) for identity.Predicate.

Also when Python 2.5 hits there will be additional confusion as newly built-in any() and all() work a bit differently than Identity's.

Change History

02/21/06 21:20:40 changed by Jeff Watkins

Of course, the existing Any and All could be made to work more like 2.5's any and all. Actually, I was thinking about making them the same... (just like we check for sets.)

I *really* dislike using the infix operators because they're the wrong operators. If we could overload 'and', 'or' and 'not', I'd be OK with it, but overloading the binary operators feels wrong.

09/22/06 18:01:23 changed by jorge.vargas

  • keywords changed from operator, infix to operator, infix 2.5.
  • status changed from new to closed.
  • resolution set to wontfix.
  • description changed.
  • milestone changed from 1.0 to 1.1.

I'm closing this in favor of #1121