in reply to Evolution of python
Could a future version of Python finally adoptPython began its life as a language for teaching of programming concepts. However, curlies aren't a concept themselves, they usually stand in for the concept of a block. Now, when blocks are written with curlies, it is very easy (especially for beginners) to misindent them, which makes it very easy (especially for beginners) to misinterpret the structure of the program. For this reason GvR chose indentation to denote blocks, which makes curlies unnecessary (and unwanted, because otherwise you'd have to set the curlies properly and correctly indent anyway)parenthesisbraces? Do people have thoughts on that? I don't really understand why Python would ultimately not want to useparenthesisebraces.
As soon as automatic prettyprinting / automatic aligning becomes mandatory (or even common), Python could go "back" to curlies. However, most programming languages are "free-form", so mandatory tidying might be seen as a step backwards. So, don't hold your breath for that to happen.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Evolution of python
by betmatt (Scribe) on Jul 09, 2019 at 12:02 UTC |