On 16 May 2018 at 01:41, Steven D'Aprano <st...@pearwood.info> wrote:
> Inspired by Alex Brault's post:
> I'd like to suggest we copy C#'s idea of verbatim identifiers, but using
> a backslash rather than @ sign:
> would allow "name" to be used as an identifier, even if it clashes with
> a keyword.
I'm missing something. How is that different from using a trailing
underscore (like if_ or while_) at the moment? I understand that foo
and \foo are the same name, whereas foo and foo_ are different, but
how would that help? Can you give a worked example of how this would
help if we wanted to introduce a new keyword? For example, if we
intended to make "where" a keyword, what would numpy and its users
need to do to continue using `numpy.where`?
Python-ideas mailing list
Code of Conduct: http://python.org/psf/codeofconduct/