I hate the stupid semi colon. Why do I need to add it to the end of a line? Why is python smart enough not to need it but other languages still havent fixed it.
because some languages allow you to write statements
that wrap over multiple lines
inorderto space things out that would
otherwise be crammed onto one line,
so for the compiler to know when the statement ends
a character is needed so that it doesn't think the next lineis part of the previous;
statement number 2 goes here
Without that semicolon, you might have continued to read “previous statement” which makes sense at first, until the words that follow.
Without the allowance for multiple lines in one statement, that second physical line makes no sense at all, despite the first one making perfect sense on its own.
And without the spacing, the run-on sentence would be a lot harder to read.
Sometimes you have to write code a particular way. Here I was making a point. In a programming language there are other reasons.
nothing causes me more of aneurysm than checking that my python code is indented properly when hitting TAB because python blocks have no concept of written scope
I hate the stupid semi colon. Why do I need to add it to the end of a line? Why is python smart enough not to need it but other languages still havent fixed it.
because some languages allow you to write statements that wrap over multiple lines in order to space things out that would otherwise be crammed onto one line, so for the compiler to know when the statement ends a character is needed so that it doesn't think the next line is part of the previous; statement number 2 goes hereWithout that semicolon, you might have continued to read “previous statement” which makes sense at first, until the words that follow.
Without the allowance for multiple lines in one statement, that second physical line makes no sense at all, despite the first one making perfect sense on its own.
And without the spacing, the run-on sentence would be a lot harder to read.
Sometimes you have to write code a particular way. Here I was making a point. In a programming language there are other reasons.
Oh that makes sense thank you for the explanation.
Python allows multiline statements with explicit \ and inside (), [], {} implicitly.
nothing causes me more of aneurysm than checking that my python code is indented properly when hitting TAB because python blocks have no concept of written scope