Morteza Mirzakhan writes: > In my opinion, using a colon after keywords such as `if`, `elif`, > `else`, `for`, `while`, `try`, `except`, and `finally` is quite > unnecessary.
Sure, but that would be a different language. I like the formality of the colon, and it helps in visually parsing the test in cases where the test expression covers more than one line and contains parentheses. I think you're very unlikely to get any uptake from the core developers on this, not because I don't like it but because it's a change for no reason except one person doesn't like colons. But it should be an easy experiment to try. Change the grammar so that colons are optional in those places. Then try to build Python and see what happens. I think that has a good chance of working. (It definitely won't work if you omit the colons entirely: all of the Python code in the stdlib will stop working!) If it does, then you can try your "Pytho" language (missing one character at the end, you see?) and see how you like it and if you can get uptake from others. If you do, then you can prohibit colons in those places and start the tedious work of making the stdlib work without them. I still doubt you'll get a large following from Pythonistas but who knows? :-) _______________________________________________ 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/AWD6QBGRG4GU6OZ2ENJTWEG3E3S3ZDZE/ Code of Conduct: http://python.org/psf/codeofconduct/