People keep mentioning refactoring. It's a red herring.

No refactoring tool needs a nameof operator added to the language in order
to do its job. And certainly an operator that requires running the program
in order to use it is not going to be helpful. Refactoring tools analyze
the program; they don't run it.

And f-strings are another red herring. There is nothing magical about
expressions inside f-strings compared to those outside.

Ignoring the red herrings, I see no utility in a nameof operator and no way
for it to actually do anything useful.

--- Bruce
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/S5C4KQTF3KFX2DRTLTEO22AE7MPSKDMX/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to