4 ms·
> properly Is python not one of the world's most-used programming languages? Can you not write parts of C++ sans curly braces? When using curly braces for sc
by otteromkram 3y ago
> properly
Is python not one of the world's most-used programming languages?
Can you not write parts of C++ sans curly braces?
When using curly braces for scoping (which is what they really define, tbh), do lines of code within the scope not end up aligned LTR (or, RTL, depending on your language)?
Do modern IDEs/word processors not have the capability to replace ASCII-defined tabs with spaces and vice-versa?
Seems like having issues with spacing is a you problem; most people handle it just fine.
- jacknews 3y agoerm, no, perhaps most people who use Python, deal with it, because they have to. And it's about significant indentation/whitespace-defined-scope, not spaces versus tabs, though that can also cause havoc for these languages. Sure Python is popular, like k-pop, but not necessarily because it's the best, and certainly not because of significant-whitespace, which I suspect even Guido regrets (eg in interviews, he hardly seems to defend this choice). Yes, you often format your code anyway in a way that could be used to ascertain scopes, but to me, using an actual delimiter is like double-entry book-keeping, and easier than manual formatting; You write your code with delimiters. Your IDE formats accordingly (with style rules that you can choose BTW). If it looks weird, you messed up the delimiters and it's obvious. Not to mention copy/pasting code, moving blocks around, etc; all fraught or painful with significant indentation. Form follows function, not the other way around, IMHO.