
June 19, 2021
6:32 p.m.
On Sat, Jun 19, 2021 at 11:04 AM Rebecca Turner <rbt@sent.as> wrote:
I think that `|` binding more tightly is the better choice here, but I'm having trouble with the behavior in some cases; would bool | (T) -> bool | int parse as bool | Callable[[T], bool | int] ? That makes it seem like `|` has a different precedence in different contexts. Would we require parenthesis here?
Right, that would be a syntax error, you'd have to write bool | ((T) -> bool | int) -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...>