4 ms·
May be different people have different experience with Python. After c and Perl had been using it for over 15 years and among the languages I have seen Python c
by dragonsh 7y ago
May be different people have different experience with Python. After c and Perl had been using it for over 15 years and among the languages I have seen Python code is one of the most readable one so far, again subjective as I like sparse and empty spaces in architecture with minimalist design. For me whitespace is same in Python code.
Whitespaces forces programmer to make code readable. Obviously today with tools like gofmt, rustfmt it seems easy and those are inspired by Python.
Python PEP process has been adopted by many programming language. Try JCP process and see what I am talking about.
- thayne 7y agoI'd be fine with python requiring indentation, what bugs me is the lack of an end delimiter. IMO it makes things like aut-indentation, auto-formatting, copy-pasting chunks of python code etc. a worse experience.
- ummonk 7y agoIf C and Perl are your comparison points, obviously python will seem better...
- dragonsh 7y agoI have tried golang, Java, C++, js and recently rust. I can still confidently say python code is the most readable of them all. Indeed so much so that python style is adopted by swift language and it does look cleaner than others. Obviously I like concise perl, Haskell code too they have a beauty of their own, but that does not make python whitespace is bad. It's just people who feel it's a burden to explicitly follow whitespace hate python indentation based on my observations. Since suddenly instead of braces or statement end one need to use a visual sense of beauty along with logic.
- ummonk 7y agoIn what way has Swift adopted Python style?