4 ms·
Any language today that still requires to mark end of line with a semi colon, has in my opinion outdated syntax. Most people put one statement per line, so why
by olavgg 13y ago
Any language today that still requires to mark end of line with a semi colon, has in my opinion outdated syntax. Most people put one statement per line, so why is it required and not optional?
- devdas 13y agoWhat about the counter case of one statement needing more than one line?
- hhw 13y ago1) Line length is arbitrary, and there is no finite limit 2) You can have an escape sequence for a new line With that said, I disagree that having to mark the end of a statement with a semi-colon is obsolete syntax. Statements and lines should not have to be 1-to-1, even if most code is written as such.
- katbyte 13y agojust guessing but if all statements are terminated with a ; instead of a newline it allows statements to be split up into multiple lines?