[Python-Dev] PEP 492 vs. PEP 3152, new round (original) (raw)
Greg greg.ewing at canterbury.ac.nz
Fri May 1 02:52:55 CEST 2015
- Previous message (by thread): [Python-Dev] PEP 492: async/await in Python; version 4
- Next message (by thread): [Python-Dev] PEP 492 vs. PEP 3152, new round
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 1/05/2015 5:38 a.m., Guido van Rossum wrote:
you can write "not -x" but you can't write "- not x".
That seems just as arbitrary and unintuitive, though.
There are some other unintuitive consequences as well, e.g. you can write
not a + b
but it's not immediately obvious that this is parsed as 'not (a + b)' rather than '(not a) + b'.
The presence of one arbitrary and unintuitive thing in the grammar is not by itself a justification for adding another one.
-- Greg
- Previous message (by thread): [Python-Dev] PEP 492: async/await in Python; version 4
- Next message (by thread): [Python-Dev] PEP 492 vs. PEP 3152, new round
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]