So does whitespace, otherwise Python wouldn’t work as a programming language
> they are easy to visually parse
only if you indent properly
> Furthermore, you can copy and paste, say for loop from a method to another method and it will work. In Python you might have to faff about with spaces (I'm sure there must be IDEs that solve this problem but it was no fun on vim or even notepad++)
Shift+V
}
< or >
Hit . as often as needed
Too difficult?
Not to mention you will run into exactly the same problem when copy pasting C unless you like randomly indented code
If I mix and match spaces and tabs, Python will not work and you cannot tell them apart ,it's a bit more subttle than this, but you get the idea (should you wish to).
There is no such issue with braces. This is what i meant.
As for formatting, you can use ide shorcuts to format your pasted code but it will run fine even if not formatted, not the same for Python, where it will not run.
That is true, but mixing spaces and tabs is a contrived example. Literally nobody actually does that.
Same for the point about formatting, I think. The average python dev probably spends about as much time reformatting pasted code as the average C dev spends typing braces.
I guess my point is just I think you subjectively dislike Python’s syntax (which is fine) but are trying to make objective justifications for that which seem really far fetched. Why not just say you don’t like it?
> That is true, but mixing spaces and tabs is a contrived example. Literally nobody actually does that.
Contrived or not this has happened to me when copying and pasting, but I take your point that people won't mix and match.
> I guess my point is just I think you subjectively dislike Python’s syntax (which is fine) but are trying to make objective justifications for that which seem really far fetched. Why not just say you don’t like it?
While the issues I encountered might seem contrived and far fetched to you, they have happened to me, granted I don't do Python professionally.
As I said on first comment, I don't like it because of the reasons I mentioned, some are factual,e.g. indentation when copy and pasting can mean that the script/program won't run, some are opinion-based, e.g.
they [braces] are easy to visually parse.
So does whitespace, otherwise Python wouldn’t work as a programming language
> they are easy to visually parse
only if you indent properly
> Furthermore, you can copy and paste, say for loop from a method to another method and it will work. In Python you might have to faff about with spaces (I'm sure there must be IDEs that solve this problem but it was no fun on vim or even notepad++)
Shift+V
}
< or >
Hit . as often as needed
Too difficult?
Not to mention you will run into exactly the same problem when copy pasting C unless you like randomly indented code