On 22/07/2020 22:22, Chris Angelico wrote:
On Thu, Jul 23, 2020 at 7:06 AM João Matos firstname.lastname@example.org wrote:
Why not just use Raymond's suggestion nobreak as a replacement of the else in loops and deprecate the else in Python 4? There is at least a precedent when not equal <> was deprecated in favor of != from Py2 to Py3. We could do the same with else/nobreak between Py3 and Py4.
Py2 supported both <> and !=, so code could be completely compatible with both branches just by using !=. You're proposing creating a new way of doing things and then deprecating or removing one of them, which either means there'll be two identical spellings, or you break everyone's code (or both). It's almost the opposite of the <> change.
Please, everyone, can we NOT keep coming up with ideas that are basically "let's invent a new spelling for exactly the same thing, with no benefits,
There is a benefit: more clarity.
and demanding new keywords,
I'll suggest another spelling that does not need a new keyword: not break:
so we can break people's code for no reason"? You can always just write your own transpiler to let yourself spell it your preferred way.
ChrisA _______________________________________________ Python-ideas mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://email@example.com/message/GSBEBZ... Code of Conduct: http://python.org/psf/codeofconduct/