Greetings from another Anthony (although my friends call me Tony).
Thank you for your suggestion about changes to the Python Syntax.
The Idea of having curly braces with blocks of code has been considered many times, and every time it has not been accepted.
When you do enough programming even in languages such as C, C++ and Java which do use Curly braces (or languages such as Pascal which use Begin/End and other such keywords), you will find that you do indent your code consistently as a matter of habit. Most serious developers in those languages will use auto-formatters to ensure that their code is nicely indented. Even though they use languages which have syntax elements to denote the start and end of a block, they recognize that indentation is a very natural way to layout code to make it readable, and they avoid 'indentation where ever they want'.
Python - by adopting indentation as it does - has simply adopted a very natural form for writing code, and made it mandatory.
You might be surprised to know that Python does allow semicolons at the end of statements, but they are optional, and really only used to run mutiple statements together on a single line; which is not considered to be a good style of writing.
Don't be put off by this message - keep enjoying Python and learning about the world of programming. You have taken your first steps in the Python community, and we all look forward to hearing what ever ideas you might have in future.
Good luck in your future journey in the computing universe.
On 03/03/2021 18:24, George Harding wrote:
---------- Forwarded message --------- From: *Anthony Farino* <email@example.com mailto:firstname.lastname@example.org> Date: Wed, Mar 3, 2021 at 5:52 PM Subject: [Python-Dev] Suggestion About Python Syntax To: <email@example.com mailto:firstname.lastname@example.org>
I love the Python scripting language, but there’s something that would make it much better. Almost every other programming language uses curly braces to enclose blocks of code and semicolons after the lines of code. That means that:
You can have as much white space as you want.
You don’t need to worry about indentation, and you can indent whenever you want.
I hope that you consider these issues and fix them in Python 4 (if you ever make it).
Sincerely, Anthony, age 10.
-- mm m # ## m mm mm#mm # mm mmm m mm m m # # #" # # #" # #" "# #" # "m m" #mm# # # # # # # # # # #m# # # # # "mm # # "#m#" # # "# m" "" _______________________________________________ Python-Dev mailing list -- email@example.com mailto:firstname.lastname@example.org To unsubscribe send an email to email@example.com mailto:firstname.lastname@example.org https://mail.python.org/mailman3/lists/python-dev.python.org/ https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://email@example.com/message/RZR2O3Y6... https://firstname.lastname@example.org/message/RZR2O3Y6Z6RCAXW72Y4WPWZ6HN3MYVFJ/ Code of Conduct: http://python.org/psf/codeofconduct/ http://python.org/psf/codeofconduct/
Python-ideas mailing list --email@example.com To unsubscribe send an email firstname.lastname@example.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived athttps://email@example.com/message/OEIEGB... Code of Conduct:http://python.org/psf/codeofconduct/