On 1 November 2016 at 20:28, Paul Moore <p.f.mo...@gmail.com> wrote:
> On 1 November 2016 at 10:11, Nick Coghlan <ncogh...@gmail.com> wrote:
>>
>> I do think it would be worth covering the symbol+keyword option
>> discussed in PEP 531 (i.e. "?else" instead of "??", but keeping "?.",
>> and "?[")
>
> FWIW, I'm not keen on it.
>
> As a technical question, would it be treated in the syntax as a
> keyword, which happened to be made up of a punctuation character
> followed by letters, or as a ? symbol followed by a keyword?

Combined keyword, rather than two distinct tokens.

If you don't do that, you end up creating ambiguities for other
possible uses of "?" (like the "." and "?[]" suggestions)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to