2 ms·
A cascade of end or a cascade of } is a bad smell about the code. I try my best to avoid that. Python has a solution to that problem but I think it's worse tha
by pmontra 10y ago
A cascade of end or a cascade of } is a bad smell about the code. I try my best to avoid that.
Python has a solution to that problem but I think it's worse than the problem. end and } never gave me as many bugs in 30 years as having to reindent in Python did in one year.
- innocentoldguy 10y agoI like Python's relevant whitespace. It forces sloppy coders to organize their code in a more readable fashion. People who use tabs throw a wrench into the works, of course, but forcing them to fix the issues they've caused typically ensures it won't happen again. I have written Python code since version 1.9 was first released, back in the 1990s, and I've worked on many large Python teams where we never ran into any issues with whitespace at all. We all set our tabs to 4 spaces, adhered to PEP8 formatting, and everything went as smoothly as any other language. I think it may just be what you're used to too.