Dear Anthony,

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.

Tony Flury.


On 03/03/2021 18:24, George Harding wrote:


---------- Forwarded message ---------
From: *Anthony Farino* <[email protected] <mailto:[email protected]>>
Date: Wed, Mar 3, 2021 at 5:52 PM
Subject: [Python-Dev] Suggestion About Python Syntax
To: <[email protected] <mailto:[email protected]>>


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:

1.

    You can have as much white space as you want.

2.

    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 protected] <mailto:[email protected]> To unsubscribe send an email to [email protected] <mailto:[email protected]> https://mail.python.org/mailman3/lists/python-dev.python.org/ <https://mail.python.org/mailman3/lists/python-dev.python.org/> Message archived at https://mail.python.org/archives/list/[email protected]/message/RZR2O3Y6Z6RCAXW72Y4WPWZ6HN3MYVFJ/ <https://mail.python.org/archives/list/[email protected]/message/RZR2O3Y6Z6RCAXW72Y4WPWZ6HN3MYVFJ/> Code of Conduct: http://python.org/psf/codeofconduct/ <http://python.org/psf/codeofconduct/>

_______________________________________________
Python-ideas mailing list [email protected]
To unsubscribe send an email [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived 
athttps://mail.python.org/archives/list/[email protected]/message/OEIEGBD5CNZSHY3D4EIIM35WELCKHPRJ/
Code of Conduct:http://python.org/psf/codeofconduct/
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/WK3WSL4IDSMQ53F3E6LANPKLDYNLPST3/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to