19 ms·
As someone who recently switched to opening curly brackets on new lines and did some Python coding last week I kind of agree - you either put in empty lines eve
by alpaca128 4y ago
As someone who recently switched to opening curly brackets on new lines and did some Python coding last week I kind of agree - you either put in empty lines everywhere or you have a continuous block of code through all scopes. It's a matter of preference and you can still work with it of course, but I've learned to appreciate reducing code density.
And regarding the syntax, using curly brackets like in C-like languages only takes one more symbol per scope and the difference in readability (where a scope ends etc.) is bigger for me. Also while indentation in Python kind of works as syntax it's not ideal as it can lead to literally invisible syntax errors, and imho the syntax isn't strict enough as Python allows you to have a different indentation width in every single scope.
That said it's still a great language for little experiments. Similar to Bash, despite Bash being not the best designed language to put it mildly.