Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indents in Python and maintainability #19

Open
pjrdata opened this issue Jun 18, 2019 · 1 comment
Open

Indents in Python and maintainability #19

pjrdata opened this issue Jun 18, 2019 · 1 comment

Comments

@pjrdata
Copy link

pjrdata commented Jun 18, 2019

Perhaps mention something about the relative advantages and disadvantages of Python's indenting. Simple syntax may be an advantage for educational purposes but for actual production use in the real world, the more structured syntax is far clearer in intent and much easier to maintain in the long term. I have found (and probably caused) numerous errors in production Python code because of stray indents that cause unexpected behaviour. The lack of start/end tokens around code blocks, instead relying on indents for parsing syntax is an abomination in my view :-)

@matloff
Copy link
Owner

matloff commented Jun 18, 2019

Yes, I've mentioned this in the Twitter discussion. Ruby fixes that while remaining Python-like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants