Yeah. Worst decision made in python. It can kick you from surprise when you need to edit some file remotely having some basic editor like nano, vi(not vim). A specially when someone before you mixed spaces with tabs few years earlier when marking some minor change in different editor. In 1kLOC file. Another problem is that it is hard to make great formatting tools for python fixing wrong indentations. One tab more and your line is inside for loop and tool can’t figure out is suppose to be there or out of loop. What is wrong with {}, begin/end is beyond my understanding :-) Beside that it’s lovely general purpose language.
I have a friend that isn't 100% blind but he's close. he's a developer and I've never heard him complain about indentation. In fact, I've never heard him complain ever; a true inspiration.
Python was designed to use (newline followed by) indentation instead of braces, parenthesis, semicolons, etc. For those that know what happens from code to machine language you know both aren't necessary. I'm sure it's no stretch to say having more than one option is not feasible either. And if you try to tell me other languages use braces and indentation you don't understand what's going on. Not to mention Python has the PEP8 style guide.
Adding another option, specifically braces, is simple. There already exists a transpiler from Bython, literally Python with braces, to Python. Now it's just a matter of modifying the actual C parser instead of having it at a higher level.
The Python style guide is irrelevant to the writability of code by people with visual disabilities.
-35
u/0xSpock Jul 25 '18 edited Jul 25 '18
Yeah. Worst decision made in python. It can kick you from surprise when you need to edit some file remotely having some basic editor like nano, vi(not vim). A specially when someone before you mixed spaces with tabs few years earlier when marking some minor change in different editor. In 1kLOC file. Another problem is that it is hard to make great formatting tools for python fixing wrong indentations. One tab more and your line is inside for loop and tool can’t figure out is suppose to be there or out of loop. What is wrong with {}, begin/end is beyond my understanding :-) Beside that it’s lovely general purpose language.